playdate
playdate copied to clipboard
use ${{ env.API_CRATES }} when all crates will have example
https://api.github.com/boozook/playdate/blob/1f1bc30b267d3d2e1f0abd8dd49c8a144e6c03b5/.github/workflows/tests.yml#L112
cargo test -p=playdate-sys --features=$FEATURES_1 -- --nocapture
cargo test -p=playdate-sys --features=$FEATURES_2 -- --nocapture
cargo test ${{ env.API_CRATES }} --lib --no-default-features --features=$FEATURES_1 -- --nocapture
cargo test ${{ env.API_CRATES }} --lib --no-default-features --features=$FEATURES_2 -- --nocapture
- name: Check device target
run: |
# should we check with -Zbuild-std ?
cargo check ${{ env.API_CRATES }} --target=thumbv7em-none-eabihf
- name: Examples
run: |
FEATURES=bindgen-runtime,bindings-derive-debug
# TODO: use ${{ env.API_CRATES }} when all crates will have example
cargo build --target=thumbv7em-none-eabihf -p=playdate-fs --examples --features=$FEATURES -Zbuild-std
cargo build --target=thumbv7em-none-eabihf -p=playdate-controls --examples --features=$FEATURES -Zbuild-std
cargo build --target=thumbv7em-none-eabihf -p=playdate-color --examples --features=$FEATURES -Zbuild-std