Skip to content

Commit

Permalink
Add bazel ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaileychess committed Jan 22, 2025
1 parent 9318c6c commit 5ceab42
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,27 @@ jobs:
working-directory: tests/nim
run: python3 testnim.py

bazel:
name: Bazel
runs-on: ubuntu-24.04
strategy:
matrix:
bzlmod: [true, false]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: bazel build
run: >
bazel build
--enable_bzlmod=${{ matrix.bzlmod }}
//:flatc
//:flatbuffers
- name: bazel test
run: >
bazel test
--enable_bzlmod=${{ matrix.bzlmod }}
//tests:flatbuffers_test
release-digests:
if: startsWith(github.ref, 'refs/tags/')
needs: [build-linux, build-windows, build-mac-intel, build-mac-universal]
Expand Down
8 changes: 8 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ bazel_dep(
version = "1.2.0",
repo_name = "build_bazel_rules_swift",
)
bazel_dep(
name = "bazel_skylib",
version = "1.7.1",
)
bazel_dep(
name = "bazel_binaries",
version = "6.3.2",
)

npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
npm.npm_translate_lock(
Expand Down

0 comments on commit 5ceab42

Please sign in to comment.