Skip to content

Commit

Permalink
CI: Install rustfmt and gcc for liboscore
Browse files Browse the repository at this point in the history
The lack of rustfmt shows up as an error in liboscore's build stage.
  • Loading branch information
chrysn authored and kaspar030 committed Apr 26, 2024
1 parent 8f1fd41 commit 1036489
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ jobs:
with:
toolchain: ${{ steps.get_toolchain.outputs.toolchain }}
targets: riscv32imc-unknown-none-elf,riscv32imac-unknown-none-elf,thumbv6m-none-eabi,thumbv7m-none-eabi,thumbv7em-none-eabi,thumbv8m.main-none-eabi
components: rust-src
# rust-src: Used for -Zbuild-std.
# rustfmt: Used by bindgen for liboscore
components: rust-src, rustfmt

- name: rust cache
if: steps.result-cache.outputs.cache-hit != 'true'
Expand All @@ -75,7 +77,7 @@ jobs:
git config --global user.name "CI"
cargo binstall --no-confirm --no-symlinks --force --no-discover-github-token laze
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
sudo apt-get install ninja-build
sudo apt-get install ninja-build gcc-arm-none-eabi
- name: "limit build unless nightly build"
if: github.event_name != 'schedule'
Expand Down

0 comments on commit 1036489

Please sign in to comment.