update dependencies #29
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: 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.61.0 | |
cargo_flags: | |
- "clint-backend" | |
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: riscv32i-unknown-none-elf,riscv32imc-unknown-none-elf,riscv32imac-unknown-none-elf,riscv64gc-unknown-none-elf | |
- name: Build riscv32i-unknown-none-elf | |
run: RUSTFLAGS="-C link-arg=-Thifive1-link.x" cargo build --workspace --target riscv32i-unknown-none-elf --features=${{ matrix.cargo_flags }},unsafe-assume-single-core | |
- name: Build riscv32imc-unknown-none-elf | |
run: RUSTFLAGS="-C link-arg=-Thifive1-link.x" cargo build --workspace --target riscv32imc-unknown-none-elf --features=${{ matrix.cargo_flags }},unsafe-assume-single-core | |
- name: Build riscv32imac-unknown-none-elf (no example) | |
run: cargo build --target riscv32imac-unknown-none-elf --features=${{ matrix.cargo_flags }} | |
- name: Build riscv64gc-unknown-none-elf (no example) | |
run: cargo build --target riscv64gc-unknown-none-elf --features=${{ matrix.cargo_flags }} |