Skip to content

fix(i2c): timeout support #22

fix(i2c): timeout support

fix(i2c): timeout support #22

name: Build Examples
on:
push:
branches: ["main"]
paths-ignore:
- "*.md"
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 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-examples.sh