mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-01 20:53:57 +00:00
Add bazel ci (#8497)
This commit is contained in:
2
.bazelrc
2
.bazelrc
@@ -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
|
||||||
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -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]
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user