Skip to content

Commit cc18f0a

Browse files
committed
Add bazel ci
1 parent 9318c6c commit cc18f0a

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/build.yml

+21
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,27 @@ jobs:
575575
working-directory: tests/nim
576576
run: python3 testnim.py
577577

578+
bazel:
579+
name: Bazel
580+
runs-on: ubuntu-24.04
581+
strategy:
582+
matrix:
583+
bzlmod: [true, false]
584+
fail-fast: false
585+
steps:
586+
- uses: actions/checkout@v3
587+
- name: bazel build
588+
run: >
589+
bazel build
590+
--enable_bzlmod=${{ matrix.bzlmod }}
591+
//:flatc
592+
//:flatbuffers
593+
- name: bazel test
594+
run: >
595+
bazel test
596+
--enable_bzlmod=${{ matrix.bzlmod }}
597+
//tests:flatbuffers_test
598+
578599
release-digests:
579600
if: startsWith(github.ref, 'refs/tags/')
580601
needs: [build-linux, build-windows, build-mac-intel, build-mac-universal]

MODULE.bazel

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ bazel_dep(
4848
version = "1.2.0",
4949
repo_name = "build_bazel_rules_swift",
5050
)
51+
bazel_dep(
52+
name = "bazel_skylib",
53+
version = "1.7.1",
54+
)
5155

5256
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
5357
npm.npm_translate_lock(

0 commit comments

Comments
 (0)