Skip to content

Commit

Permalink
CI: try to pre-install bindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook committed Oct 27, 2023
1 parent 1207a43 commit 1138e6a
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,40 +99,44 @@ jobs:
- name: SDK ${{ steps.sdk.outputs.version }} installed
run: which pdc && pdc --version

- name: Install Bindgen
if: runner.os == 'Windows'
run: cargo install playdate-bindgen --path ./support/bindgen --features=cli,static --no-default-features

- name: Test Sys (host)
run: |
cargo test -p=playdate-sys --features=lang-items -- --nocapture
cargo test -p=playdate-sys --features=lang-items,$FEATURES_1
cargo test -p=playdate-sys --features=lang-items,$FEATURES_2
- name: Build Sys (device)
env:
DOCS_RS: ${{ runner.os == 'Windows' && 1 || 0 }}
IGNORE_EXISTING_PLAYDATE_SDK: ${{ runner.os == 'Windows' && 1 || 0 }}
# env:
# DOCS_RS: ${{ runner.os == 'Windows' && 1 || 0 }}
# IGNORE_EXISTING_PLAYDATE_SDK: ${{ runner.os == 'Windows' && 1 || 0 }}
run: |
cargo build -p=playdate-sys ${{ env.BUILD_STD_ARGS }}
cargo build -p=playdate-sys --features=lang-items,$FEATURES_1 ${{ env.BUILD_STD_ARGS }} --examples
cargo build -p=playdate-sys --features=lang-items,$FEATURES_2 ${{ env.BUILD_STD_ARGS }} --examples
- name: Test Crates (host)
env:
DOCS_RS: ${{ runner.os == 'Windows' && 1 || 0 }}
IGNORE_EXISTING_PLAYDATE_SDK: ${{ runner.os == 'Windows' && 1 || 0 }}
# env:
# DOCS_RS: ${{ runner.os == 'Windows' && 1 || 0 }}
# IGNORE_EXISTING_PLAYDATE_SDK: ${{ runner.os == 'Windows' && 1 || 0 }}
run: |
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
# cargo test ${{ env.API_CRATES }} --lib --no-default-features --features=$FEATURES_3
- name: Check Crates (device)
env:
DOCS_RS: ${{ runner.os == 'Windows' && 1 || 0 }}
IGNORE_EXISTING_PLAYDATE_SDK: ${{ runner.os == 'Windows' && 1 || 0 }}
# env:
# DOCS_RS: ${{ runner.os == 'Windows' && 1 || 0 }}
# IGNORE_EXISTING_PLAYDATE_SDK: ${{ runner.os == 'Windows' && 1 || 0 }}
run: cargo check ${{ env.API_CRATES }} --target=thumbv7em-none-eabihf

- name: Build Crates (device)
env:
DOCS_RS: ${{ runner.os == 'Windows' && 1 || 0 }}
IGNORE_EXISTING_PLAYDATE_SDK: ${{ runner.os == 'Windows' && 1 || 0 }}
# env:
# DOCS_RS: ${{ runner.os == 'Windows' && 1 || 0 }}
# IGNORE_EXISTING_PLAYDATE_SDK: ${{ runner.os == 'Windows' && 1 || 0 }}
run: |
cargo build ${{ env.API_CRATES }} --features=sys/lang-items,$FEATURES_1 ${{ env.BUILD_STD_ARGS }} --examples --lib
cargo build ${{ env.API_CRATES }} --features=sys/lang-items,$FEATURES_2 ${{ env.BUILD_STD_ARGS }} --examples --lib
Expand Down

0 comments on commit 1138e6a

Please sign in to comment.