forked from google/flatbuffers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build.yml
Update dependencies (google#7674)
* `build.yml` Update dependencies * Update build.yml * Update build.yml * `build.yml`: Use macos-11 * Update build.yml
- Loading branch information
1 parent
1a8d2c3
commit 8bc4ee3
Showing
1 changed file
with
35 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ jobs: | |
cxx: [g++-10, clang++-12] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: cmake | ||
run: CXX=${{ matrix.cxx }} cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_STRICT_MODE=ON . | ||
- name: build | ||
|
@@ -76,7 +76,7 @@ jobs: | |
- cxx: g++-10 | ||
std: 23 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: cmake | ||
run: > | ||
CXX=${{ matrix.cxx }} cmake -G "Unix Makefiles" | ||
|
@@ -99,7 +99,7 @@ jobs: | |
std: [11, 14, 17, 20, 23] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
- name: cmake | ||
|
@@ -124,7 +124,7 @@ jobs: | |
name: Build Windows 2019 | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
- name: cmake | ||
|
@@ -159,7 +159,7 @@ jobs: | |
name: Build Windows 2017 | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
- name: cmake | ||
|
@@ -173,7 +173,7 @@ jobs: | |
name: Build Windows 2015 | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
- name: cmake | ||
|
@@ -195,9 +195,9 @@ jobs: | |
#'-p:EnableSpanT=true,UnsafeByteBuffer=true' | ||
] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET Core SDK | ||
uses: actions/setup-dotnet@v1.9.0 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '3.1.x' | ||
- name: Build | ||
|
@@ -219,9 +219,9 @@ jobs: | |
name: Build Mac (for Intel) | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: cmake | ||
run: cmake -G "Xcode" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_FLATC_EXECUTABLE=_build/Release/flatc -DFLATBUFFERS_STRICT_MODE=ON . | ||
run: cmake -G "Xcode" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_FLATC_EXECUTABLE=$(PWD)/_build/Release/flatc -DFLATBUFFERS_STRICT_MODE=ON . | ||
- name: build | ||
# NOTE: we need this _build dir to not have xcodebuild's default ./build dir clash with the BUILD file. | ||
run: xcodebuild -toolchain clang -configuration Release -target flattests SYMROOT=$(PWD)/_build | ||
|
@@ -265,9 +265,9 @@ jobs: | |
name: Build Mac (universal build) | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: cmake | ||
run: cmake -G "Xcode" -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_FLATC_EXECUTABLE=_build/Release/flatc -DFLATBUFFERS_STRICT_MODE=ON . | ||
run: cmake -G "Xcode" -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_FLATC_EXECUTABLE=$(PWD)/_build/Release/flatc -DFLATBUFFERS_STRICT_MODE=ON . | ||
- name: build | ||
# NOTE: we need this _build dir to not have xcodebuild's default ./build dir clash with the BUILD file. | ||
run: xcodebuild -toolchain clang -configuration Release -target flattests SYMROOT=$(PWD)/_build | ||
|
@@ -305,11 +305,12 @@ jobs: | |
name: Build Android (on Linux) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
- uses: actions/checkout@v3 | ||
- name: set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 1.8 | ||
distribution: 'temurin' | ||
java-version: '11' | ||
- name: set up flatc | ||
run: | | ||
cmake -DFLATBUFFERS_BUILD_TESTS=OFF -DFLATBUFFERS_BUILD_FLATLIB=OFF -DFLATBUFFERS_BUILD_FLATHASH=OFF -DFLATBUFFERS_STRICT_MODE=ON . | ||
|
@@ -326,7 +327,7 @@ jobs: | |
matrix: | ||
cxx: [g++-10, clang++-12] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: cmake | ||
run: CXX=${{ matrix.cxx }} cmake -G "Unix Makefiles" -DFLATBUFFERS_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_STRICT_MODE=ON . && make -j | ||
- name: Generate | ||
|
@@ -341,7 +342,7 @@ jobs: | |
matrix: | ||
cxx: [g++-10] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: cmake | ||
run: CXX=${{ matrix.cxx }} cmake -G "Unix Makefiles" -DFLATBUFFERS_CXX_FLAGS="-Wno-unused-parameter -fno-aligned-new" -DFLATBUFFERS_BUILD_BENCHMARKS=ON -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_STRICT_MODE=ON . && make -j | ||
- name: Run benchmarks | ||
|
@@ -356,7 +357,7 @@ jobs: | |
name: Build Java | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: test | ||
working-directory: java | ||
run: mvn test | ||
|
@@ -366,11 +367,11 @@ jobs: | |
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- uses: gradle/[email protected] | ||
- uses: actions/setup-java@v2 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt-hotspot' | ||
distribution: 'temurin' | ||
java-version: '11' | ||
- name: Build | ||
working-directory: kotlin | ||
|
@@ -381,10 +382,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v2 | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt-hotspot' | ||
distribution: 'temurin' | ||
java-version: '11' | ||
- uses: gradle/[email protected] | ||
- name: Build | ||
|
@@ -398,7 +399,7 @@ jobs: | |
name: Build Rust | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: test | ||
working-directory: tests | ||
run: bash RustTest.sh | ||
|
@@ -407,7 +408,7 @@ jobs: | |
name: Build Python | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: test | ||
working-directory: tests | ||
run: bash PythonTest.sh | ||
|
@@ -416,7 +417,7 @@ jobs: | |
name: Build Go | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: flatc | ||
# FIXME: make test script not rely on flatc | ||
run: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_BUILD_TESTS=OFF -DFLATBUFFERS_INSTALL=OFF -DFLATBUFFERS_BUILD_FLATLIB=OFF -DFLATBUFFERS_BUILD_FLATHASH=OFF -DFLATBUFFERS_STRICT_MODE=ON . && make -j | ||
|
@@ -428,7 +429,7 @@ jobs: | |
name: Build Swift | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: test | ||
working-directory: tests/swift/tests | ||
run: | | ||
|
@@ -441,9 +442,9 @@ jobs: | |
container: | ||
image: ghcr.io/swiftwasm/carton:0.15.3 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Setup Wasmer | ||
uses: wasmerio/setup-wasmer@v1 | ||
uses: wasmerio/setup-wasmer@v2 | ||
- name: Test | ||
working-directory: tests/swift/Wasm.tests | ||
run: carton test | ||
|
@@ -452,7 +453,7 @@ jobs: | |
name: Build TS | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: flatc | ||
# FIXME: make test script not rely on flatc | ||
run: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_BUILD_TESTS=OFF -DFLATBUFFERS_INSTALL=OFF -DFLATBUFFERS_BUILD_FLATLIB=OFF -DFLATBUFFERS_BUILD_FLATHASH=OFF . && make -j | ||
|
@@ -468,7 +469,7 @@ jobs: | |
name: Build Dart | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: dart-lang/setup-dart@v1 | ||
with: | ||
sdk: stable | ||
|
@@ -483,7 +484,7 @@ jobs: | |
name: Build Nim | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: flatc | ||
# FIXME: make test script not rely on flatc | ||
run: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_BUILD_TESTS=OFF -DFLATBUFFERS_INSTALL=OFF -DFLATBUFFERS_BUILD_FLATLIB=OFF -DFLATBUFFERS_BUILD_FLATHASH=OFF . && make -j | ||
|