diff options
author | 2020-10-05 09:35:07 +0000 | |
---|---|---|
committer | 2020-10-05 10:52:02 +0000 | |
commit | 7261685b7fa3d555c29a4cd9f8dd208d985c182c (patch) | |
tree | bb7b08fc2321ca17d5e037ddfbf9dbb4dc5c06f9 | |
parent | 99e7b1a4fa89f9a4d0d703dc05768c0ca8185598 (diff) | |
download | rtic-7261685b7fa3d555c29a4cd9f8dd208d985c182c.tar.gz rtic-7261685b7fa3d555c29a4cd9f8dd208d985c182c.tar.zst rtic-7261685b7fa3d555c29a4cd9f8dd208d985c182c.zip |
Separate example check and run-pass tests
-rw-r--r-- | .github/workflows/build.yml | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d5773e4..e53672bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -85,7 +85,7 @@ jobs: command: check args: --target=${{ matrix.target }} - # Verify all examples + # Verify all examples, checks checkexamples: name: checkexamples runs-on: ubuntu-20.04 @@ -140,6 +140,51 @@ jobs: command: check args: --examples --target=${{ matrix.target }} --features __min_r1_43,${{ env.V7 }} + # Verify the example output with run-pass tests + testexamples: + name: testexamples + runs-on: ubuntu-20.04 + strategy: + matrix: + target: + - thumbv7m-none-eabi + - thumbv6m-none-eabi + toolchain: + - stable + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Cache cargo dependencies + uses: actions/cache@v2 + with: + path: | + - ~/.cargo/bin/ + - ~/.cargo/registry/index/ + - ~/.cargo/registry/cache/ + - ~/.cargo/git/db/ + key: ${{ runner.OS }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.OS }}-cargo-${{ hashFiles('**/Cargo.lock') }} + ${{ runner.OS }}-cargo- + + - name: Cache build output dependencies + uses: actions/cache@v2 + with: + path: target + key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }} + ${{ runner.OS }}-build- + + - name: Install Rust ${{ matrix.toolchain }} with target (${{ matrix.target }}) + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.toolchain }} + target: ${{ matrix.target }} + override: true + components: llvm-tools-preview + # Use precompiled binutils - name: cargo install cargo-binutils uses: actions-rs/install@v0.1 @@ -657,6 +702,7 @@ jobs: - style - check - checkexamples + - testexamples - checkmacros - testv7 - testv6 @@ -673,6 +719,7 @@ jobs: - style - check - checkexamples + - testexamples - checkmacros - testv7 - testv6 |