Start adjusting CI

This commit is contained in:
Connor Fitzgerald 2021-07-03 02:24:38 -04:00
parent 26f3c03150
commit 861e84b178

View File

@ -112,30 +112,37 @@ jobs:
wrapper_features: wrapper_features:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- if: matrix.channel == 'nightly' - name: Install latest nightly
name: Install latest nightly
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: nightly toolchain: ${{ matrix.channel }}
override: true override: true
- if: matrix.clippy_params != '' - if: matrix.clippy_params != ''
run: rustup component add clippy run: rustup component add clippy
# prepare
# prepare #
- if: matrix.prepare_command != '' - if: matrix.prepare_command != ''
run: ${{ matrix.prepare_command }} run: ${{ matrix.prepare_command }}
# regular build
# regular build #
# build
- if: matrix.additional_core_features != '' - if: matrix.additional_core_features != ''
run: cargo check --manifest-path wgpu-core/Cargo.toml --features ${{ matrix.additional_core_features }} run: cargo check --manifest-path wgpu-core/Cargo.toml --features ${{ matrix.additional_core_features }}
- if: matrix.additional_player_features != '' - if: matrix.additional_player_features != ''
run: cargo check --manifest-path player/Cargo.toml --features ${{ matrix.additional_player_features }} run: cargo check --manifest-path player/Cargo.toml --features ${{ matrix.additional_player_features }}
- run: cargo check --manifest-path wgpu/Cargo.toml --examples --features ${{ matrix.wrapper_features }}, - run: cargo check --manifest-path wgpu/Cargo.toml --examples --features ${{ matrix.wrapper_features }},
# clippy # clippy
- if: matrix.clippy_params != '' - if: matrix.clippy_params != ''
run: cargo clippy ${{ matrix.clippy_params }} run: cargo clippy ${{ matrix.clippy_params }}
- if: matrix.channel == 'nightly' - if: matrix.channel == 'nightly'
run: cargo test -p wgpu-core -- --nocapture run: cargo test -p wgpu-core -- --nocapture
# - if: matrix.channel == 'nightly' - if: matrix.channel == 'nightly'
# run: cargo run --bin wgpu-info -- cargo test -p wgpu -- --nocapture run: cargo run --bin wgpu-info -- cargo test -p wgpu -- --nocapture --test-threads=1 # GLES is currently non-multithreadable
docs: docs: