From 0ed499b892cb7b2578ace8cfca5a3ca99bec99b6 Mon Sep 17 00:00:00 2001 From: Daniel Stonier Date: Wed, 6 Sep 2023 18:16:05 +0000 Subject: [PATCH] bzlmodded --- .bazelignore | 1 + .github/workflows/build.yml | 19 +++++++++++++++++++ MODULE.bazel | 14 ++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 .bazelignore create mode 100644 MODULE.bazel diff --git a/.bazelignore b/.bazelignore new file mode 100644 index 0000000..51b3402 --- /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 a408a9d..0c516e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,3 +70,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 0000000..7119060 --- /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)