Skip to content

feat: use slices for changing block sizes #11

feat: use slices for changing block sizes

feat: use slices for changing block sizes #11

Workflow file for this run

name: Build LibDaisy Examples
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install target
run: rustup target add thumbv7em-none-eabihf
- name: Cache cargo registry
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Build examples
run: |
excluded_examples="sdmmc usb_midi" # List of examples to exclude
for example in $(ls examples/*.rs); do
example_name=$(basename $example .rs)
if [[ ! " $excluded_examples " =~ " $example_name " ]]; then
cargo build --example $example_name
else
echo "Skipping $example_name"
fi
done