estebank's patch #305
Workflow file for this run
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
| name: test debug | |
| run-name: ${{ github.actor }}'s patch | |
| on: [push, pull_request] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: '14' | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --no-default-features --features "defmt" | |
| build-no-std: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: "thumbv7em-none-eabihf" | |
| # I'd prefer --manifest-path ./qemu-tests/Cargo.toml, but I think this ignores | |
| # the .cargo/config.toml file inside the QEMU test folder. | |
| - run: cd qemu-tests && cargo build --target thumbv7em-none-eabihf | |
| clippy-output: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: cargo clippy --examples | |
| # Run some programs in QEMU 9 | |
| qemu-test: | |
| runs-on: ubuntu-24.04 | |
| needs: [build-and-test, build-no-std] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get -y update | |
| sudo apt-get -y install libpixman-1-0 libfdt1 libglib2.0-0t64 | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: install | |
| args: defmt-print --locked | |
| - name: Install custom QEMU into /opt | |
| run: | | |
| curl -sSL https://github.com/jonathanpallant/qemu9-for-ubuntu-2404/releases/download/qemu-9.2.3%2Bbuild0/qemu-9.2.3-ubuntu-24.04.tar.gz | sudo tar xvzf - -C / | |
| - name: Run tests in QEMU | |
| run: | | |
| export PATH=/opt/qemu/bin:$PATH | |
| cd qemu-tests | |
| ./tests.sh |