Simplify CI config
This commit is contained in:
parent
5fbf47a2d7
commit
5c96fa7042
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
@ -14,10 +14,7 @@ jobs:
|
||||
- i686-unknown-linux-gnu
|
||||
- aarch64-unknown-linux-gnu
|
||||
- riscv64gc-unknown-linux-gnu
|
||||
build_std: [false]
|
||||
include:
|
||||
- target: riscv32gc-unknown-linux-gnu
|
||||
build_std: true
|
||||
- riscv32gc-unknown-linux-gnu
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@ -26,28 +23,16 @@ jobs:
|
||||
run: |
|
||||
rustup update nightly
|
||||
rustup default nightly
|
||||
- name: Install Rust standard library source
|
||||
if: matrix.build_std
|
||||
run: rustup component add rust-src
|
||||
- name: Install cross-compilation tools
|
||||
uses: taiki-e/setup-cross-toolchain-action@v1
|
||||
with:
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
- name: Build example binary
|
||||
if: '!matrix.build_std'
|
||||
run: cargo build --release
|
||||
- name: Build example binary
|
||||
if: matrix.build_std
|
||||
run: cargo build --release -Zbuild-std
|
||||
run: cargo build --release $BUILD_STD
|
||||
|
||||
- name: Run example binary
|
||||
if: '!matrix.build_std'
|
||||
run: (cargo run --release 2>&1 | tee ../run.log) || true
|
||||
working-directory: example
|
||||
- name: Run example binary
|
||||
if: matrix.build_std
|
||||
run: (cargo run --release -Zbuild-std 2>&1 | tee ../run.log) || true
|
||||
run: (cargo run --release $BUILD_STD 2>&1 | tee ../run.log) || true
|
||||
working-directory: example
|
||||
|
||||
- name: Check log
|
||||
|
Loading…
Reference in New Issue
Block a user