Fixed nRF53 debug unlock failing after mass erase due to checking the… #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: [master, staging, trying] | |
| pull_request: | |
| merge_group: | |
| workflow_dispatch: | |
| name: Run smoke test | |
| env: | |
| CARGO_INCREMENTAL: 0 | |
| # Cancel any currently running workflows from the same PR, branch, or | |
| # tag when a new workflow is triggered. | |
| # | |
| # https://stackoverflow.com/a/66336834 | |
| concurrency: | |
| cancel-in-progress: true | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v6 | |
| - name: Install target for cross-compilation | |
| run: rustup target add aarch64-unknown-linux-gnu | |
| - name: Install cross | |
| uses: taiki-e/install-action@v2.65.1 | |
| with: | |
| tool: cross | |
| - name: Cache Dependencies | |
| uses: Swatinem/rust-cache@v2.8.2 | |
| - name: Build smoke-tester | |
| run: cross build --release --target aarch64-unknown-linux-gnu -p smoke_tester | |
| - uses: actions/upload-artifact@v6 | |
| with: | |
| name: smoke_tester | |
| path: target/aarch64-unknown-linux-gnu/release/smoke_tester | |
| - name: Build probe-rs | |
| run: cross build --release --target aarch64-unknown-linux-gnu -p probe-rs-tools --features remote | |
| - uses: actions/upload-artifact@v6 | |
| with: | |
| name: probe-rs | |
| path: target/aarch64-unknown-linux-gnu/release/probe-rs | |
| test: | |
| runs-on: ["self-hosted", "linux", "ARM64", "${{ matrix.runner }}"] | |
| strategy: | |
| matrix: | |
| runner: ["smoke-test", "smoke-tester-2"] | |
| needs: build | |
| steps: | |
| - uses: actions/download-artifact@v7 | |
| with: | |
| name: smoke_tester | |
| - name: Run smoke-tester | |
| run: | | |
| chmod +x smoke_tester | |
| ./smoke_tester test --dut-definitions $SMOKE_TESTER_CONFIG --markdown-summary $GITHUB_STEP_SUMMARY | |
| embedded-test: | |
| runs-on: ["self-hosted", "linux", "ARM64", "${{ matrix.runner }}"] | |
| strategy: | |
| matrix: | |
| runner: ["smoke-tester-2"] | |
| needs: build | |
| steps: | |
| - uses: actions/download-artifact@v7 | |
| with: | |
| name: probe-rs | |
| - name: Run embedded-tests | |
| run: | | |
| chmod +x probe-rs | |
| if [ -n "$EMBEDDED_TEST_RUNNER" ]; then | |
| . $EMBEDDED_TEST_RUNNER | |
| fi |