Skip to content

Commit

Permalink
ci: don't add toolchain explicitly, should be automatic with rust-too…
Browse files Browse the repository at this point in the history
…lchain.toml

And add a cron job to run the check every monday
  • Loading branch information
romainreignier committed Sep 3, 2024
1 parent b537f57 commit 95868d0
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Build Template

on:
schedule:
- cron: '0 8 * * 1'
push:
branches: ["*"]
paths-ignore:
Expand Down Expand Up @@ -32,25 +34,6 @@ jobs:
ch32x035,
ch641,
]
include:
- mcu_family: ch32l003
target: riscv32imac-unknown-none-elf
- mcu_family: ch32v103
target: riscv32imac-unknown-none-elf
- mcu_family: ch32v203
target: riscv32imac-unknown-none-elf
- mcu_family: ch32v208
target: riscv32imac-unknown-none-elf
- mcu_family: ch32v303
target: riscv32imafc-unknown-none-elf
- mcu_family: ch32v305
target: riscv32imafc-unknown-none-elf
- mcu_family: ch32v307
target: riscv32imafc-unknown-none-elf
- mcu_family: ch32x033
target: riscv32imac-unknown-none-elf
- mcu_family: ch32x035
target: riscv32imac-unknown-none-elf
runs-on: ubuntu-latest

steps:
Expand All @@ -71,12 +54,7 @@ jobs:
rustup default nightly
rustup component add rust-src
rustup update
- name: Install ${{ matrix.target }} target
if: ${{ matrix.target }}
run: |
cd ${{ runner.temp }}/$PROJECT_NAME
rustup target add ${{ matrix.target }}
- name: Build for ${{ matrix.mcu_family }}
- name: Build
run: |
cd ${{ runner.temp }}/$PROJECT_NAME
cargo build --release

0 comments on commit 95868d0

Please sign in to comment.