Added yaml for some F425 peripherals #220
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 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
crate: | |
- gd32c1 | |
- gd32e1 | |
- gd32e2 | |
- gd32e5 | |
- gd32f1 | |
- gd32f2 | |
- gd32f3 | |
- gd32f4 | |
env: | |
CRATES: ${{ matrix.crate }} | |
CARGO_INCREMENTAL: 0 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
override: true | |
components: rustfmt | |
- name: Install xmllint | |
run: sudo apt-get install libxml2-utils | |
- name: Install Python dependencies | |
run: | | |
pip3 install --user setuptools wheel | |
pip3 install --user svdtools | |
- name: Put pip binary directory into path | |
run: echo "~/.local/bin" >> $GITHUB_PATH | |
- name: Cache Cargo installed binaries | |
uses: actions/cache@v4 | |
id: cache-cargo | |
with: | |
path: ~/cargo-bin | |
key: ${{ runner.os }}-svd2rust-0.32.0 | |
- name: Install svd2rust | |
if: steps.cache-cargo.outputs.cache-hit != 'true' | |
uses: actions-rs/[email protected] | |
with: | |
crate: svd2rust | |
version: 0.32.0 | |
- name: Copy svd2rust to cache directory | |
if: steps.cache-cargo.outputs.cache-hit != 'true' | |
run: | | |
mkdir ~/cargo-bin | |
cp ~/.cargo/bin/svd2rust ~/cargo-bin | |
- name: Put new cargo binary directory into path | |
run: echo "~/cargo-bin" >> $GITHUB_PATH | |
- name: Patch SVDs | |
run: make -j2 patch | |
- name: Check SVDs | |
run: make lint | |
- name: Build PACs | |
run: make -j2 svd2rust | |
- name: Check PACs | |
run: make -j2 check |