Skip to content

chore(deps): update actions/checkout action to v4 #137

chore(deps): update actions/checkout action to v4

chore(deps): update actions/checkout action to v4 #137

Workflow file for this run

on:
push:
branches: [main]
pull_request:
name: Continuous integration
jobs:
ci-linux:
runs-on: ubuntu-20.04
continue-on-error: ${{ matrix.experimental || false }}
strategy:
matrix:
rust: [nightly, stable]
crate: [d1-pac, r528-pac, xr806-pac, v853-pac]
include:
# Nightly is only for reference and allowed to fail
- rust: nightly
experimental: true
- crate: d1-pac
target: riscv64imac-unknown-none-elf
- crate: r528-pac
target: armv7a-none-eabi
- crate: xr806-pac
target: thumbv8m.main-none-eabi
- crate: v853-pac
target: armv7a-none-eabi
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Setup Rust toolchain
run: rustup default ${{ matrix.rust }}
- name: Install Rust targets
run: rustup target add --toolchain=${{ matrix.rust }} ${{ matrix.target }}
- name: Build crate
run: cargo build --package ${{ matrix.crate }} --target ${{ matrix.target }}
# On macOS and Windows, we at least make sure that the crate builds and links.
build-other:
strategy:
matrix:
os:
- macOS-latest
- windows-latest
crate: [d1-pac, r528-pac, xr806-pac, v853-pac]
include:
- crate: d1-pac
target: riscv64imac-unknown-none-elf
- crate: r528-pac
target: armv7a-none-eabi
- crate: xr806-pac
target: thumbv8m.main-none-eabi
- crate: v853-pac
target: armv7a-none-eabi
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Install Rust targets
run: rustup target add ${{ matrix.target }}
- name: Build crate
run: cargo build --package ${{ matrix.crate }} --target ${{ matrix.target }}