| 1 | # This builds for armv7a-none-eabi to ensure we can build with no-std. |
| 2 | # It will fail if there is a dependency on std, as armv7a-none-eabi has no std. |
| 3 | |
| 4 | on: |
| 5 | push: |
| 6 | branches: |
| 7 | - main |
| 8 | pull_request: |
| 9 | |
| 10 | name: no-std |
| 11 | |
| 12 | jobs: |
| 13 | build: |
| 14 | name: no-std |
| 15 | runs-on: ubuntu-latest |
| 16 | steps: |
| 17 | - uses: actions/checkout@v2 |
| 18 | - uses: actions-rs/toolchain@v1 |
| 19 | with: |
| 20 | toolchain: nightly |
| 21 | target: armv7a-none-eabi |
| 22 | override: true |
| 23 | - uses: actions-rs/cargo@v1 |
| 24 | with: |
| 25 | command: rustc |
| 26 | args: --target=armv7a-none-eabi --manifest-path=ensure_no_std/Cargo.toml |