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
|
- i686-unknown-linux-gnu
|
||||||
- aarch64-unknown-linux-gnu
|
- aarch64-unknown-linux-gnu
|
||||||
- riscv64gc-unknown-linux-gnu
|
- riscv64gc-unknown-linux-gnu
|
||||||
build_std: [false]
|
- riscv32gc-unknown-linux-gnu
|
||||||
include:
|
|
||||||
- target: riscv32gc-unknown-linux-gnu
|
|
||||||
build_std: true
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -26,28 +23,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rustup update nightly
|
rustup update nightly
|
||||||
rustup default 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
|
- name: Install cross-compilation tools
|
||||||
uses: taiki-e/setup-cross-toolchain-action@v1
|
uses: taiki-e/setup-cross-toolchain-action@v1
|
||||||
with:
|
with:
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Build example binary
|
- name: Build example binary
|
||||||
if: '!matrix.build_std'
|
run: cargo build --release $BUILD_STD
|
||||||
run: cargo build --release
|
|
||||||
- name: Build example binary
|
|
||||||
if: matrix.build_std
|
|
||||||
run: cargo build --release -Zbuild-std
|
|
||||||
|
|
||||||
- name: Run example binary
|
- name: Run example binary
|
||||||
if: '!matrix.build_std'
|
run: (cargo run --release $BUILD_STD 2>&1 | tee ../run.log) || true
|
||||||
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
|
|
||||||
working-directory: example
|
working-directory: example
|
||||||
|
|
||||||
- name: Check log
|
- name: Check log
|
||||||
|
Loading…
Reference in New Issue
Block a user