1313 # All generated code should be running on stable now
1414 rust : [nightly, stable, 1.39.0]
1515
16- # The default target we're compiling on and for
17- TARGET : [x86_64-unknown-linux-gnu, thumbv6m-none-eabi, thumbv7m-none-eabi, thumbv7em-none-eabi, thumbv7em-none-eabihf, thumbv8m.main-none-eabi]
18-
1916 include :
2017 # Nightly is only for reference and allowed to fail
2118 - rust : nightly
@@ -27,10 +24,20 @@ jobs:
2724 with :
2825 profile : minimal
2926 toolchain : ${{ matrix.rust }}
30- target : ${{ matrix.TARGET }}
3127 override : true
32- components : rustfmt
28+ - name : Install all Rust targets for ${{ matrix.rust }}
29+ run : rustup target install --toolchain=${{ matrix.rust }} thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf thumbv8m.main-none-eabi
3330 - name : Install qemu and gcc
3431 run : sudo apt-get update && sudo apt-get install qemu-system-arm gcc-arm-none-eabi
35- - name : Run CI script for ${{ matrix.TARGET }} under ${{ matrix.rust }}
36- run : TARGET=${{ matrix.TARGET }} TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
32+ - name : Run CI script for x86_64-unknown-linux-gnu under ${{ matrix.rust }}
33+ run : TARGET=x86_64-unknown-linux-gnu TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
34+ - name : Run CI script for thumbv6m-none-eabi under ${{ matrix.rust }}
35+ run : TARGET=thumbv6m-none-eabi TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
36+ - name : Run CI script for thumbv7m-none-eabi under ${{ matrix.rust }}
37+ run : TARGET=thumbv7m-none-eabi TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
38+ - name : Run CI script for thumbv7em-none-eabi under ${{ matrix.rust }}
39+ run : TARGET=thumbv7em-none-eabi TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
40+ - name : Run CI script for thumbv7em-none-eabihf under ${{ matrix.rust }}
41+ run : TARGET=thumbv7em-none-eabihf TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
42+ - name : Run CI script for thumbv8m.main-none-eabi under ${{ matrix.rust }}
43+ run : TARGET=thumbv8m.main-none-eabi TRAVIS_RUST_VERSION=${{ matrix.rust }} bash ci/script.sh
0 commit comments