diff --git a/.bazelignore b/.bazelignore new file mode 100644 index 000000000..51b34029a --- /dev/null +++ b/.bazelignore @@ -0,0 +1 @@ +test/gtest-1.11.0 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ea824c94d..f3fc2dd7a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,3 +64,22 @@ jobs: cd "${{ github.workspace }}" bazel test test + bzlmod-build: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + + - name: Build + shell: bash + run: | + cd "${{ github.workspace }}" + bazel build --enable_bzlmod :all + + - name: Test + shell: bash + run: | + cd "${{ github.workspace }}" + bazel test --enable_bzlmod test diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 000000000..7119060bf --- /dev/null +++ b/MODULE.bazel @@ -0,0 +1,14 @@ +""" +yaml-cpp is a YAML parser and emitter in c++ matching the YAML specification. +""" + +module( + name = "yaml-cpp", + compatibility_level = 1, + version = "0.8.0", +) + +bazel_dep(name = "platforms", version = "0.0.7") +bazel_dep(name = "rules_cc", version = "0.0.8") + +bazel_dep(name = "googletest", version = "1.14.0", dev_dependency = True)