Skip to content

Continuous integration #18

Continuous integration

Continuous integration #18

Workflow file for this run

name: Continuous integration
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
# On Linux, we check that the crate builds and links for all the toolchains and targets.
ci-linux:
strategy:
matrix:
# All generated code should be running on stable now, MRSV is 1.59.0
toolchain:
- stable
- nightly
- 1.59.0
target:
- x86_64-unknown-linux-gnu
- riscv32i-unknown-none-elf
- riscv32imc-unknown-none-elf
- riscv32imac-unknown-none-elf
- riscv64gc-unknown-linux-gnu
- riscv64gc-unknown-none-elf
cargo_flags:
- "--features=clint-backend,unsafe-assume-single-core"
include:
# Nightly is only for reference and allowed to fail
- rust: nightly
experimental: true
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental || false }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
targets: ${{ matrix.target }}
- name: Build library
run: cargo build --target ${{ matrix.target }} ${{ matrix.cargo_flags }}