Add bazel ci (#8497)

This commit is contained in:
Derek Bailey
2025-01-22 13:41:45 -08:00
committed by GitHub
parent 4b69b27d43
commit 69ac6a712d
3 changed files with 22 additions and 1 deletions

View File

@@ -10,3 +10,5 @@ common --action_env=JAVA_HOME=../bazel_tools/jdk
common:windows --enable_runfiles common:windows --enable_runfiles
# Swift is not required on Windows # 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

View File

@@ -575,6 +575,21 @@ jobs:
working-directory: tests/nim working-directory: tests/nim
run: python3 testnim.py 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: release-digests:
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
needs: [build-linux, build-windows, build-mac-intel, build-mac-universal] needs: [build-linux, build-windows, build-mac-intel, build-mac-universal]

View File

@@ -48,6 +48,10 @@ bazel_dep(
version = "1.18.0", version = "1.18.0",
repo_name = "build_bazel_rules_swift", 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 = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
npm.npm_translate_lock( npm.npm_translate_lock(