Skip to content

Commit

Permalink
ci: add build test
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Apr 30, 2024
1 parent 2fc2281 commit 0eb9805
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: metapac build

on:
pull_request:
branches: ["main"]
paths-ignore:
- '*.md'

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use nightly Rust
run: |
rustup default nightly
rustup target add riscv32imac-unknown-none-elf
- name: Build
run: |
./d gen
- name: Test
run: |
cd build/ch32-metapac/
cargo build --features pac,metadata,rt,memory-x,ch32v307vct6 --target riscv32imac-unknown-none-elf
cargo doc --features pac,metadata,rt,memory-x,ch32v307vct6 --target riscv32imac-unknown-none-elf

0 comments on commit 0eb9805

Please sign in to comment.