Skip to content

Commit

Permalink
Add bazel ci (#8497)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaileychess authored Jan 22, 2025
1 parent 4b69b27 commit 69ac6a7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ common --action_env=JAVA_HOME=../bazel_tools/jdk
# Workaround "Error: need --enable_runfiles on Windows for to support rules_js"
common:windows --enable_runfiles
# Swift is not required on Windows
common:windows --deleted_packages=swift
common:windows --deleted_packages=swift
# Ignore warnings in external dependencies
build --per_file_copt=external/.*@-Wno-everything --host_per_file_copt=external/.*@-Wno-everything
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,21 @@ jobs:
working-directory: tests/nim
run: python3 testnim.py

bazel:
name: Bazel
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: bazel build
run: >
bazel build
//:flatc
//:flatbuffers
- name: bazel test
run: >
bazel test
//tests:flatbuffers_test
release-digests:
if: startsWith(github.ref, 'refs/tags/')
needs: [build-linux, build-windows, build-mac-intel, build-mac-universal]
Expand Down
4 changes: 4 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ bazel_dep(
version = "1.18.0",
repo_name = "build_bazel_rules_swift",
)
bazel_dep(
name = "bazel_skylib",
version = "1.7.1",
)

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

0 comments on commit 69ac6a7

Please sign in to comment.