Skip to content

Commit 9f31491

Browse files
authored
bzlmodded (#1224)
1 parent 016b2e7 commit 9f31491

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.bazelignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test/gtest-1.11.0

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,22 @@ jobs:
6464
cd "${{ github.workspace }}"
6565
bazel test test
6666
67+
bzlmod-build:
68+
strategy:
69+
matrix:
70+
os: [ubuntu-latest, windows-latest, macos-latest]
71+
runs-on: ${{ matrix.os }}
72+
steps:
73+
- uses: actions/checkout@v2
74+
75+
- name: Build
76+
shell: bash
77+
run: |
78+
cd "${{ github.workspace }}"
79+
bazel build --enable_bzlmod :all
80+
81+
- name: Test
82+
shell: bash
83+
run: |
84+
cd "${{ github.workspace }}"
85+
bazel test --enable_bzlmod test

MODULE.bazel

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
yaml-cpp is a YAML parser and emitter in c++ matching the YAML specification.
3+
"""
4+
5+
module(
6+
name = "yaml-cpp",
7+
compatibility_level = 1,
8+
version = "0.8.0",
9+
)
10+
11+
bazel_dep(name = "platforms", version = "0.0.7")
12+
bazel_dep(name = "rules_cc", version = "0.0.8")
13+
14+
bazel_dep(name = "googletest", version = "1.14.0", dev_dependency = True)

0 commit comments

Comments
 (0)