mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 17:30:00 +00:00
chore: add rust windows test to CI, fix RustTest.bat (#7963)
Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@@ -444,14 +444,23 @@ jobs:
|
|||||||
# gradlew
|
# gradlew
|
||||||
run: gradle jvmMainClasses jvmTest jsTest jsBrowserTest
|
run: gradle jvmMainClasses jvmTest jsTest jsBrowserTest
|
||||||
|
|
||||||
build-rust:
|
build-rust-linux:
|
||||||
name: Build Rust
|
name: Build Rust Linux
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: test
|
- name: test
|
||||||
working-directory: tests
|
working-directory: tests
|
||||||
run: bash RustTest.sh
|
run: bash RustTest.sh
|
||||||
|
|
||||||
|
build-rust-windows:
|
||||||
|
name: Build Rust Windows
|
||||||
|
runs-on: windows-2019
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: test
|
||||||
|
working-directory: tests
|
||||||
|
run: ./RustTest.bat
|
||||||
|
|
||||||
build-python:
|
build-python:
|
||||||
name: Build Python
|
name: Build Python
|
||||||
|
|||||||
@@ -15,16 +15,19 @@ rem limitations under the License.
|
|||||||
|
|
||||||
rem Compile then run the Rust test.
|
rem Compile then run the Rust test.
|
||||||
|
|
||||||
cd rust_usage_test
|
cd rust_serialize_test
|
||||||
|
cargo run -- --quiet || exit /b 1
|
||||||
|
|
||||||
|
cd ../rust_no_std_compilation_test
|
||||||
|
rustup install nightly
|
||||||
|
rustup component add rust-src --toolchain nightly
|
||||||
|
rustup target add thumbv7m-none-eabi
|
||||||
|
cargo +nightly build || exit /b 1
|
||||||
|
|
||||||
|
cd ../rust_usage_test
|
||||||
cargo test -- --quiet || exit /b 1
|
cargo test -- --quiet || exit /b 1
|
||||||
cargo run --bin=flatbuffers_alloc_check || exit /b 1
|
cargo run --bin=flatbuffers_alloc_check || exit /b 1
|
||||||
cargo run --bin=flexbuffers_alloc_check || exit /b 1
|
cargo run --bin=flexbuffers_alloc_check || exit /b 1
|
||||||
cargo run --bin=monster_example || exit /b 1
|
cargo run --bin=monster_example || exit /b 1
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
cd rust_no_std_compilation_test
|
|
||||||
rustup install nightly
|
|
||||||
rustup component add rust-src --toolchain nightly
|
|
||||||
rustup target add thumbv7m-none-eabi
|
|
||||||
cargo build || exit /b 1
|
|
||||||
cd ..
|
|
||||||
|
|||||||
Reference in New Issue
Block a user