Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: fix features list for pre-build update workflow #22

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 24 additions & 27 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
DEFAULT_BRANCH: ${{ github.event.inputs.source || steps.base.outputs.value || github.event.repository.default_branch }}

pre-gen:
name: Gen (${{ matrix.os }}, ${{ matrix.features.v }})
name: Gen (${{ matrix.os }}, ${{ matrix.features.name }})
defaults:
run:
shell: bash
Expand All @@ -92,26 +92,23 @@ jobs:
- ubuntu-latest
# - windows-latest
sdk:
# - latest
- ${{ github.event.inputs.source || 'latest' }}
features:
- {
v: --features=bindings-documentation,
bindings-derive-debug,
name: default,
}
- {
v: --features=bindings-documentation,
bindings-derive-default,
bindings-derive-eq,
bindings-derive-copy,
bindings-derive-debug,
bindings-derive-hash,
bindings-derive-ord,
bindings-derive-partialeq,
bindings-derive-partialord,
name: full,
}
- v: >-
bindings-documentation
bindings-derive-debug
name: default
- v: >-
bindings-documentation
bindings-derive-default
bindings-derive-eq
bindings-derive-copy
bindings-derive-debug
bindings-derive-hash
bindings-derive-ord
bindings-derive-partialeq
bindings-derive-partialord
name: full

steps:
- uses: actions/checkout@v4
Expand All @@ -134,14 +131,14 @@ jobs:

- name: Host
run: |
cargo build -p=playdate-sys ${{ matrix.features.v }} -vv
cargo build -p=playdate-sys ${{ matrix.features.v }} --release
cargo build -p=playdate-sys --features="${{ matrix.features.v }}" -vv
cargo build -p=playdate-sys --features="${{ matrix.features.v }}" --release

- name: Device
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
cargo build -p=playdate-sys ${{ matrix.features.v }} --target=thumbv7em-none-eabihf
cargo build -p=playdate-sys ${{ matrix.features.v }} --target=thumbv7em-none-eabihf --release
cargo build -p=playdate-sys --features="${{ matrix.features.v }}" --target=thumbv7em-none-eabihf
cargo build -p=playdate-sys --features="${{ matrix.features.v }}" --target=thumbv7em-none-eabihf --release

- name: Format
run: rustfmt api/sys/gen/*.rs
Expand All @@ -150,16 +147,16 @@ jobs:
# env: # uncomment when all bindings for min-supported-SDK will be there
# IGNORE_EXISTING_PLAYDATE_SDK: 1
run: |
cargo test -p=playdate-sys ${{ matrix.features.v }}
cargo test -p=playdate-sys ${{ matrix.features.v }} --release
cargo test -p=playdate-sys --features="${{ matrix.features.v }}"
cargo test -p=playdate-sys --features="${{ matrix.features.v }}" --release

- name: Test (device)
if: ${{ matrix.os == 'ubuntu-latest' }}
# env: # uncomment when all bindings for min-supported-SDK will be there
# IGNORE_EXISTING_PLAYDATE_SDK: 1
run: |
cargo build -p=playdate-sys ${{ matrix.features.v }} --target=thumbv7em-none-eabihf -Zbuild-std=core,alloc
cargo build -p=playdate-sys ${{ matrix.features.v }} --target=thumbv7em-none-eabihf -Zbuild-std=core,alloc --release
cargo build -p=playdate-sys --features="${{ matrix.features.v }}" --target=thumbv7em-none-eabihf -Zbuild-std=core,alloc
cargo build -p=playdate-sys --features="${{ matrix.features.v }}" --target=thumbv7em-none-eabihf -Zbuild-std=core,alloc --release

- name: Commit
id: commit
Expand Down