mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Test x11 and wayland features on CI
This commit is contained in:
parent
c1ea0dde92
commit
4b1b314ce2
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
@ -37,6 +37,8 @@ jobs:
|
||||||
- { target: i686-pc-windows-gnu, os: windows-latest, host: -i686-pc-windows-gnu }
|
- { target: i686-pc-windows-gnu, os: windows-latest, host: -i686-pc-windows-gnu }
|
||||||
- { target: i686-unknown-linux-gnu, os: ubuntu-latest, }
|
- { target: i686-unknown-linux-gnu, os: ubuntu-latest, }
|
||||||
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, }
|
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, }
|
||||||
|
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: x11 }
|
||||||
|
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: wayland }
|
||||||
- { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' }
|
- { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' }
|
||||||
- { target: x86_64-apple-darwin, os: macos-latest, }
|
- { target: x86_64-apple-darwin, os: macos-latest, }
|
||||||
- { target: x86_64-apple-ios, os: macos-latest, }
|
- { target: x86_64-apple-ios, os: macos-latest, }
|
||||||
|
@ -50,6 +52,7 @@ jobs:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
RUSTFLAGS: "-C debuginfo=0"
|
RUSTFLAGS: "-C debuginfo=0"
|
||||||
|
OPTIONS: ${{ matrix.platform.options }}
|
||||||
FEATURES: ${{ format(',{0}', matrix.platform.features ) }}
|
FEATURES: ${{ format(',{0}', matrix.platform.features ) }}
|
||||||
CMD: ${{ matrix.platform.cmd }}
|
CMD: ${{ matrix.platform.cmd }}
|
||||||
|
|
||||||
|
@ -82,35 +85,35 @@ jobs:
|
||||||
- name: Check documentation
|
- name: Check documentation
|
||||||
shell: bash
|
shell: bash
|
||||||
if: matrix.platform.target != 'wasm32-unknown-unknown'
|
if: matrix.platform.target != 'wasm32-unknown-unknown'
|
||||||
run: cargo $CMD doc --no-deps --target ${{ matrix.platform.target }} --features $FEATURES
|
run: cargo $CMD doc --no-deps --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cargo $CMD build --verbose --target ${{ matrix.platform.target }} --features $FEATURES
|
run: cargo $CMD build --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES
|
||||||
|
|
||||||
- name: Build tests
|
- name: Build tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cargo $CMD test --no-run --verbose --target ${{ matrix.platform.target }} --features $FEATURES
|
run: cargo $CMD test --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
shell: bash
|
shell: bash
|
||||||
if: (
|
if: (
|
||||||
!contains(matrix.platform.target, 'android') &&
|
!contains(matrix.platform.target, 'android') &&
|
||||||
!contains(matrix.platform.target, 'ios') &&
|
!contains(matrix.platform.target, 'ios') &&
|
||||||
!contains(matrix.platform.target, 'wasm32'))
|
!contains(matrix.platform.target, 'wasm32'))
|
||||||
run: cargo $CMD test --verbose --target ${{ matrix.platform.target }} --features $FEATURES
|
run: cargo $CMD test --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES
|
||||||
|
|
||||||
|
|
||||||
- name: Build with serde enabled
|
- name: Build with serde enabled
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cargo $CMD build --verbose --target ${{ matrix.platform.target }} --features serde,$FEATURES
|
run: cargo $CMD build --verbose --target ${{ matrix.platform.target }} $OPTIONS --features serde,$FEATURES
|
||||||
|
|
||||||
- name: Build tests with serde enabled
|
- name: Build tests with serde enabled
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cargo $CMD test --no-run --verbose --target ${{ matrix.platform.target }} --features serde,$FEATURES
|
run: cargo $CMD test --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features serde,$FEATURES
|
||||||
- name: Run tests with serde enabled
|
- name: Run tests with serde enabled
|
||||||
shell: bash
|
shell: bash
|
||||||
if: (
|
if: (
|
||||||
!contains(matrix.platform.target, 'android') &&
|
!contains(matrix.platform.target, 'android') &&
|
||||||
!contains(matrix.platform.target, 'ios') &&
|
!contains(matrix.platform.target, 'ios') &&
|
||||||
!contains(matrix.platform.target, 'wasm32'))
|
!contains(matrix.platform.target, 'wasm32'))
|
||||||
run: cargo $CMD test --verbose --target ${{ matrix.platform.target }} --features serde,$FEATURES
|
run: cargo $CMD test --verbose --target ${{ matrix.platform.target }} $OPTIONS --features serde,$FEATURES
|
||||||
|
|
Loading…
Reference in a new issue