diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e9ffb3a..6cbf5e7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,6 @@ on: env: CARGO_TERM_COLOR: always NO_STD_TARGET: thumbv7em-none-eabi # firmware uses atomics - QEMU_TARGET: thumbv7m-none-eabi jobs: host: @@ -40,7 +39,7 @@ jobs: - uses: actions/checkout@v3 - name: Use the latest stable release run: rustup update stable && rustup default stable - - name: Install NO_STD_TARGET + - name: Install target for cross-compilation run: rustup target add ${{ env.NO_STD_TARGET }} - name: Install Rust targets, build defmt crates for no_std targets, build defmt dependent crates for cortex-m targets, build panic-probe with different features run: cargo xtask test-cross @@ -90,8 +89,8 @@ jobs: - uses: actions/checkout@v3 - name: Use the latest stable release run: rustup update stable && rustup default stable - - name: Install NO_STD_TARGET - run: rustup target add ${{ env.QEMU_TARGET }} + - name: Install target for cross-compilation + run: rustup target add ${{ env.NO_STD_TARGET }} - name: Install dependencies run: sudo apt-get update && sudo apt-get install qemu qemu-system-arm - name: Run QEMU snapshot tests @@ -105,8 +104,8 @@ jobs: fetch-depth: 0 - name: Use the latest stable release run: rustup update stable && rustup default stable - - name: Install NO_STD_TARGET - run: rustup target add ${{ env.QEMU_TARGET }} + - name: Install target for cross-compilation + run: rustup target add ${{ env.NO_STD_TARGET }} - name: Install dependencies run: sudo apt-get update && sudo apt-get install qemu qemu-system-arm - name: Run backward compatibility test