Fix v303 compile error #161
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
name: CI Build | |
on: | |
push: | |
branches: ["main"] | |
paths-ignore: | |
- "*.md" | |
pull_request: | |
branches: ["main"] | |
paths-ignore: | |
- "*.md" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
strategy: | |
matrix: | |
chip: | |
- ch32l103f8u6 | |
- ch32v003f4u6 | |
- ch32v103c8t6 | |
- ch32v203f8u6 | |
- ch32v208wbu6 | |
- ch32v303cbt6 | |
- ch32v305fbp6 | |
- ch32v307vct6 | |
- ch32x035f7p6 | |
- ch641 | |
include: | |
- chip: ch32l103f8u6 | |
target: riscv32imc-unknown-none-elf | |
- chip: ch32v003f4u6 | |
target: riscv32i-unknown-none-elf | |
- chip: ch32v103c8t6 | |
target: riscv32imc-unknown-none-elf | |
- chip: ch32v203f8u6 | |
target: riscv32imc-unknown-none-elf | |
- chip: ch32v208wbu6 | |
target: riscv32imc-unknown-none-elf | |
- chip: ch32v303cbt6 | |
# use rv32imc because ri32imfc does not exist, hal should not use FP anyways | |
target: riscv32imc-unknown-none-elf | |
- chip: ch32v305fbp6 | |
# use rv32imc because ri32imfc does not exist | |
target: riscv32imc-unknown-none-elf | |
- chip: ch32v307vct6 | |
# use rv32imc because ri32imfc does not exist | |
target: riscv32imc-unknown-none-elf | |
- chip: ch32x035f7p6 | |
# use rv32imc because ri32imfc does not exist | |
target: riscv32imc-unknown-none-elf | |
- chip: ch641 | |
target: riscv32i-unknown-none-elf | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use nightly Rust | |
run: | | |
rustup default nightly | |
rustup component add rust-src | |
rustup update | |
rustup target add riscv32imc-unknown-none-elf | |
rustup target add riscv32i-unknown-none-elf | |
- name: Fetch Deps | |
# if this is a pull request | |
if: github.event_name == 'pull_request' | |
run: | | |
mkdir -p ../ch32-data/build/ | |
cd ../ch32-data/build/ | |
git clone https://github.com/ch32-rs/ch32-metapac.git | |
- name: Build Only | |
run: ./.github/ci/build.sh | |
env: | |
CHIP: ${{ matrix.chip }} | |
TARGET: ${{ matrix.target }} |