Skip to content

Misc fixes for OTG_FS and enable building on stable toolchain #152

Misc fixes for OTG_FS and enable building on stable toolchain

Misc fixes for OTG_FS and enable building on stable toolchain #152

Workflow file for this run

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
- ch32v303vct6
- ch32v305fbp6
- ch32v307vct6
- ch32x035f7p6
- ch641
include:
- chip: ch32l103f8u6
target: riscv32imac-unknown-none-elf
- chip: ch32v003f4u6
target: riscv32i-unknown-none-elf
- chip: ch32v103c8t6
target: riscv32imac-unknown-none-elf
- chip: ch32v203f8u6
target: riscv32imac-unknown-none-elf
- chip: ch32v208wbu6
target: riscv32imac-unknown-none-elf
- chip: ch32v303vct6
target: riscv32imafc-unknown-none-elf
- chip: ch32v305fbp6
target: riscv32imafc-unknown-none-elf
- chip: ch32v307vct6
target: riscv32imafc-unknown-none-elf
- chip: ch32x035f7p6
target: riscv32imafc-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 riscv32imac-unknown-none-elf
rustup target add riscv32imafc-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 }}