Fix build error that assigning to &T
is undefined behavior
#45
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
on: | |
push: | |
branches: [ staging, trying, master ] | |
pull_request: | |
name: CI | |
jobs: | |
ci-linux: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
rust: [stable, nightly] | |
target: [x86_64-unknown-linux-gnu, riscv32imac-unknown-none-elf] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: Install Rust target | |
run: rustup target install --toolchain=${{ matrix.rust }} ${{ matrix.target }} | |
- name: Check code | |
run: cargo check --target ${{ matrix.target }} | |
- name: Check rt feature | |
run: cargo check --target ${{ matrix.target }} --features rt |