Skip to content

Commit 0e6aa4b

Browse files
authored
chore: add Bazel configuration and metadata for examples and wasm-cc modules (#917)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent 072d3f3 commit 0e6aa4b

14 files changed

+93
-2
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.6.0
1+
7.6.2

.bcr/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
moduleRoots:
2+
- "."
3+
- wasm-cc

.bcr/metadata.template.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"homepage": "https://www.envoyproxy.io/",
3+
"maintainers": [
4+
{
5+
"github": "mmorel-35",
6+
"github_user_id": 6032561
7+
},
8+
{
9+
"github": "phlax",
10+
"github_user_id": 454682
11+
}
12+
],
13+
"repository": [
14+
"github:envoyproxy/examples"
15+
],
16+
"versions": [],
17+
"yanked_versions": {}
18+
}

.bcr/presubmit.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
matrix:
2+
unix_platform:
3+
- debian11
4+
- ubuntu2404
5+
- macos_arm64
6+
bazel:
7+
- 7.x
8+
- 8.x
9+
- 9.*
10+
tasks:
11+
verify_targets:
12+
name: Verify build targets
13+
platform: ${{ unix_platform }}
14+
bazel: ${{ bazel }}
15+
build_targets:
16+
- "@envoy_examples//..."

.bcr/source.template.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"integrity": "",
3+
"strip_prefix": "{REPO}-{VERSION}",
4+
"url": "https://github.com/{OWNER}/{REPO}/archive/refs/tags/v{TAG}.tar.gz"
5+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"homepage": "https://www.envoyproxy.io/",
3+
"maintainers": [
4+
{
5+
"github": "mmorel-35",
6+
"github_user_id": 6032561
7+
},
8+
{
9+
"github": "phlax",
10+
"github_user_id": 454682
11+
}
12+
],
13+
"repository": [
14+
"github:envoyproxy/examples"
15+
],
16+
"versions": [],
17+
"yanked_versions": {}
18+
}

.bcr/wasm-cc/presubmit.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
matrix:
2+
unix_platform:
3+
- debian11
4+
- ubuntu2404
5+
- macos_arm64
6+
bazel:
7+
- 7.x
8+
- 8.x
9+
- 9.*
10+
tasks:
11+
verify_targets:
12+
name: Verify build targets
13+
platform: ${{ unix_platform }}
14+
bazel: ${{ bazel }}
15+
build_targets:
16+
- "@envoy_examples_wasmcc//..."

.bcr/wasm-cc/source.template.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"integrity": "",
3+
"strip_prefix": "{REPO}-{VERSION}/wasm-cc",
4+
"url": "https://github.com/{OWNER}/{REPO}/archive/refs/tags/v{TAG}.tar.gz"
5+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
!\.bazelrc
77
!\.bazelproject
88
!\.bazelversion
9+
!\.bcr
910
!\.circleci
1011
!\.clang-format
1112
!\.clang-tidy

MODULE.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module(
2+
name = "envoy_examples",
3+
version = "0.1.4-dev",
4+
)

0 commit comments

Comments
 (0)