|
@@ -0,0 +1,40 @@
|
|
|
+on:
|
|
|
+ push:
|
|
|
+ branches: [ staging, trying, master ]
|
|
|
+ pull_request:
|
|
|
+
|
|
|
+name: Continuous integration
|
|
|
+
|
|
|
+jobs:
|
|
|
+ ci-linux:
|
|
|
+ runs-on: ubuntu-20.04
|
|
|
+ continue-on-error: ${{ matrix.experimental || false }}
|
|
|
+ strategy:
|
|
|
+ matrix:
|
|
|
+ # All generated code should be running on stable now, MRSV is 1.42.0
|
|
|
+ rust: [nightly, stable, 1.42.0]
|
|
|
+
|
|
|
+ include:
|
|
|
+ # Nightly is only for reference and allowed to fail
|
|
|
+ - rust: nightly
|
|
|
+ experimental: true
|
|
|
+
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v2
|
|
|
+ - uses: actions-rs/toolchain@v1
|
|
|
+ with:
|
|
|
+ profile: minimal
|
|
|
+ toolchain: ${{ matrix.rust }}
|
|
|
+ override: true
|
|
|
+ - name: Install all Rust targets for ${{ matrix.rust }}
|
|
|
+ run: rustup target install --toolchain=${{ matrix.rust }} riscv32imac-unknown-none-elf riscv64imac-unknown-none-elf riscv64gc-unknown-none-elf
|
|
|
+ - name: Install riscv gcc
|
|
|
+ run: sudo apt-get update && sudo apt-get install -y gcc-riscv64-unknown-elf
|
|
|
+ - name: Run CI script for riscv32imac-unknown-none-elf under ${{ matrix.rust }}
|
|
|
+ run: TARGET=riscv32imac-unknown-none-elf cargo check
|
|
|
+ - name: Run CI script for riscv64imac-unknown-none-elf under ${{ matrix.rust }}
|
|
|
+ run: TARGET=riscv64imac-unknown-none-elf cargo check
|
|
|
+ - name: Run CI script for riscv64gc-unknown-none-elf under ${{ matrix.rust }}
|
|
|
+ run: TARGET=riscv64gc-unknown-none-elf cargo check
|
|
|
+ - name: Check blobs
|
|
|
+ run: ./check-blobs.sh
|