-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
243 changed files
with
1,153 additions
and
466 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
node_modules | ||
ts/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
# We cannot use "common" here because the "version" command doesn't support | ||
# --deleted_packages. We need to specify it for both build and query instead. | ||
build --deleted_packages=tests/ts/bazel_repository_test_dir | ||
query --deleted_packages=tests/ts/bazel_repository_test_dir | ||
build --deleted_packages=tests/bazel_repository_test_dir,tests/ts/bazel_repository_test_dir | ||
query --deleted_packages=tests/bazel_repository_test_dir,tests/ts/bazel_repository_test_dir | ||
# Point tools such as coursier (used in rules_jvm_external) to Bazel's internal JDK | ||
# suggested in https://github.com/bazelbuild/rules_jvm_external/issues/445 | ||
common --repo_env=JAVA_HOME=../bazel_tools/jdk | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,9 @@ on: | |
pull_request: | ||
branches: | ||
- master | ||
schedule: | ||
# Run daily at 4:45 A.M. to catch dependencies that break us. | ||
- cron: '45 4 * * *' | ||
|
||
jobs: | ||
build-linux: | ||
|
@@ -21,10 +24,10 @@ jobs: | |
digests-gcc: ${{ steps.hash-gcc.outputs.hashes }} | ||
digests-clang: ${{ steps.hash-clang.outputs.hashes }} | ||
name: Build Linux | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
cxx: [g++-13, clang++-15] | ||
cxx: [g++-13, clang++-18] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -53,7 +56,7 @@ jobs: | |
with: | ||
files: Linux.flatc.binary.${{ matrix.cxx }}.zip | ||
- name: Generate SLSA subjects - clang | ||
if: matrix.cxx == 'clang++-15' && startsWith(github.ref, 'refs/tags/') | ||
if: matrix.cxx == 'clang++-18' && startsWith(github.ref, 'refs/tags/') | ||
id: hash-clang | ||
run: echo "hashes=$(sha256sum Linux.flatc.binary.${{ matrix.cxx }}.zip | base64 -w0)" >> $GITHUB_OUTPUT | ||
- name: Generate SLSA subjects - gcc | ||
|
@@ -63,27 +66,27 @@ jobs: | |
|
||
build-linux-no-file-tests: | ||
name: Build Linux with -DFLATBUFFERS_NO_FILE_TESTS | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: cmake | ||
run: CXX=clang++-15 cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_STRICT_MODE=ON -DFLATBUFFERS_CXX_FLAGS="-DFLATBUFFERS_NO_FILE_TESTS" . | ||
run: CXX=clang++-18 cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_STRICT_MODE=ON -DFLATBUFFERS_CXX_FLAGS="-DFLATBUFFERS_NO_FILE_TESTS" . | ||
- name: build | ||
run: make -j | ||
- name: test | ||
run: ./flattests | ||
|
||
build-linux-out-of-source: | ||
name: Build Linux with out-of-source build location | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: make build directory | ||
run: mkdir build | ||
- name: cmake | ||
working-directory: build | ||
run: > | ||
CXX=clang++-15 cmake .. -G "Unix Makefiles" -DFLATBUFFERS_STRICT_MODE=ON | ||
CXX=clang++-18 cmake .. -G "Unix Makefiles" -DFLATBUFFERS_STRICT_MODE=ON | ||
-DFLATBUFFERS_BUILD_CPP17=ON -DFLATBUFFERS_CPP_STD=17 | ||
- name: build | ||
working-directory: build | ||
|
@@ -97,15 +100,15 @@ jobs: | |
|
||
build-linux-cpp-std: | ||
name: Build Linux C++ | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
std: [11, 14, 17, 20, 23] | ||
cxx: [g++-13, clang++-15] | ||
cxx: [g++-13, clang++-18] | ||
exclude: | ||
# Clang++15 10.3.0 stdlibc++ doesn't fully support std 23 | ||
- cxx: clang++-15 | ||
- cxx: clang++-18 | ||
std: 23 | ||
|
||
steps: | ||
|
@@ -220,11 +223,11 @@ jobs: | |
outputs: | ||
digests: ${{ steps.hash.outputs.hashes }} | ||
name: Build Mac (for Intel) | ||
runs-on: macos-latest | ||
runs-on: macos-latest-large | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: cmake | ||
run: cmake -G "Xcode" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_STRICT_MODE=ON . | ||
run: cmake -G "Xcode" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_STRICT_MODE=ON . | ||
- name: build | ||
run: xcodebuild -toolchain clang -configuration Release -target flattests | ||
- name: check that the binary is x86_64 | ||
|
@@ -302,7 +305,7 @@ jobs: | |
|
||
build-android: | ||
name: Build Android (on Linux) | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: set up Java | ||
|
@@ -321,10 +324,10 @@ jobs: | |
|
||
build-generator: | ||
name: Check Generated Code | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
cxx: [g++-13, clang++-15] | ||
cxx: [g++-13, clang++-18] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: cmake | ||
|
@@ -352,7 +355,7 @@ jobs: | |
|
||
build-benchmarks: | ||
name: Build Benchmarks (on Linux) | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
cxx: [g++-13] | ||
|
@@ -370,7 +373,7 @@ jobs: | |
|
||
build-java: | ||
name: Build Java | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: test | ||
|
@@ -383,6 +386,11 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# Force Xcode 14.3 since Xcode 15 doesnt support older versions of | ||
# kotlin. For Xcode 15, kotlin should be bumpped to 1.9.10 | ||
# https://stackoverflow.com/a/77150623 | ||
- name: Set up Xcode version | ||
run: sudo xcode-select -s /Applications/Xcode_14.3.app/Contents/Developer | ||
- uses: gradle/[email protected] | ||
- uses: actions/setup-java@v3 | ||
with: | ||
|
@@ -399,7 +407,7 @@ jobs: | |
|
||
build-kotlin-linux: | ||
name: Build Kotlin Linux | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -422,7 +430,7 @@ jobs: | |
|
||
build-rust-linux: | ||
name: Build Rust Linux | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: test | ||
|
@@ -440,7 +448,7 @@ jobs: | |
|
||
build-python: | ||
name: Build Python | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: flatc | ||
|
@@ -452,7 +460,7 @@ jobs: | |
|
||
build-go: | ||
name: Build Go | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: flatc | ||
|
@@ -464,7 +472,7 @@ jobs: | |
|
||
build-php: | ||
name: Build PHP | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: flatc | ||
|
@@ -478,7 +486,8 @@ jobs: | |
build-swift: | ||
name: Build Swift | ||
runs-on: ubuntu-22.04-64core | ||
# Only 22.04 has swift at the moment https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md?plain=1#L30 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: test | ||
|
@@ -489,7 +498,7 @@ jobs: | |
build-swift-wasm: | ||
name: Build Swift Wasm | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
container: | ||
image: ghcr.io/swiftwasm/carton:0.15.3 | ||
steps: | ||
|
@@ -502,7 +511,7 @@ jobs: | |
|
||
build-ts: | ||
name: Build TS | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: flatc | ||
|
@@ -520,7 +529,7 @@ jobs: | |
build-dart: | ||
name: Build Dart | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dart-lang/setup-dart@v1 | ||
|
@@ -535,7 +544,7 @@ jobs: | |
|
||
build-nim: | ||
name: Build Nim | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: flatc | ||
|
@@ -554,7 +563,7 @@ jobs: | |
needs: [build-linux, build-windows, build-mac-intel, build-mac-universal] | ||
outputs: | ||
digests: ${{ steps.hash.outputs.digests }} | ||
runs-on: ubuntu-22.04-64core | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Merge results | ||
id: hash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.