Rust 1.70 #42
Workflow file for this run
This file contains 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: Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
master | |
pull_request: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
zephyr_version: [3.7.0, 2.7.3, 2.3.0] | |
board: [qemu_x86, qemu_cortex_m3, qemu_cortex_r5, nucleo_l552ze_q, native_posix, qemu_riscv32, qemu_riscv64] | |
test: [samples/rust-app, samples/no_std, samples/serial] | |
exclude: | |
- board: qemu_riscv32 | |
zephyr_version: 2.3.0 | |
- board: qemu_riscv64 | |
zephyr_version: 2.3.0 | |
- board: qemu_riscv32 | |
zephyr_version: 2.7.3 | |
- board: qemu_riscv64 | |
zephyr_version: 2.7.3 | |
# serial/uart does not exist on posix | |
- board: native_posix | |
test: samples/serial | |
# posix has header issues on Zephyr 3.x | |
- board: native_posix | |
zephyr_version: 3.7.0 | |
include: | |
- fails: false | |
- run: false | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/${{ github.repository }}:zephyr-rust-${{ matrix.zephyr_version }}-1.70.0 | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Build | |
run: | | |
west build -d /tmp/build -p auto -b ${{ matrix.board }} ${{ matrix.test }} | |
- name: Run | |
if: ${{ matrix.run }} | |
run: | | |
cd /tmp/build | |
ninja run || ${{ matrix.fails }} |