-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6187afd
commit becd75d
Showing
7 changed files
with
53 additions
and
70 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
merge_group: | ||
|
||
name: Build check | ||
|
||
jobs: | ||
# We check that the crate builds and links for all the toolchains and targets. | ||
build: | ||
strategy: | ||
matrix: | ||
# All generated code should be running on stable now, MRSV is 1.58.0 | ||
toolchain: | ||
- stable | ||
- nightly | ||
- 1.58.0 | ||
target: | ||
- riscv32imac-unknown-none-elf | ||
- riscv64gc-unknown-none-elf | ||
- thumbv6m-none-eabi | ||
- thumbv7m-none-eabi | ||
- thumbv8m.main-none-eabi | ||
- x86_64-unknown-linux-gnu | ||
include: | ||
# Nightly is only for reference and allowed to fail | ||
- toolchain: nightly | ||
experimental: true | ||
|
||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.experimental || false }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Update Rust toolchain | ||
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | ||
- name: Install Rust target | ||
if: matrix.target != 'x86_64-unknown-linux-gnu' | ||
run: rustup target install ${{ matrix.target }} | ||
- name: Build (debug) | ||
run: cargo build --target ${{ matrix.target }} | ||
- name: Build (release) | ||
run: cargo build --release --target ${{ matrix.target }} |
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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