mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Split out CTS to its own workflow
This commit is contained in:
parent
376ed9ea9c
commit
a5e6e8f9cc
70
.github/workflows/ci.yml
vendored
70
.github/workflows/ci.yml
vendored
@ -5,7 +5,6 @@ on:
|
|||||||
branches: [master, staging]
|
branches: [master, staging]
|
||||||
tags: [v0.*]
|
tags: [v0.*]
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [labeled, opened, synchronize]
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
@ -163,75 +162,6 @@ jobs:
|
|||||||
WGPU_BACKEND=$backend cargo test --target ${{ matrix.target }} -p wgpu --no-fail-fast -- --nocapture --test-threads=1
|
WGPU_BACKEND=$backend cargo test --target ${{ matrix.target }} -p wgpu --no-fail-fast -- --nocapture --test-threads=1
|
||||||
done
|
done
|
||||||
|
|
||||||
cts:
|
|
||||||
# Only run if we add this label
|
|
||||||
if: contains(github.event.pull_request.labels.*.name, 'needs testing')
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
# Windows
|
|
||||||
- name: Windows x86_64
|
|
||||||
os: windows-2019
|
|
||||||
target: x86_64-pc-windows-msvc
|
|
||||||
backends: dx12 # dx11
|
|
||||||
|
|
||||||
name: CTS ${{ matrix.name }}
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: checkout repo
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
path: wgpu
|
|
||||||
|
|
||||||
- name: checkout cts
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
repository: gpuweb/cts
|
|
||||||
ref: a44186d9fa1d5babdb4a198e8ef04cf0d7035ebb # from "gh-pages" branch
|
|
||||||
path: cts
|
|
||||||
|
|
||||||
- name: install rust
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
target: ${{ matrix.target }}
|
|
||||||
profile: minimal
|
|
||||||
|
|
||||||
- name: caching
|
|
||||||
uses: Swatinem/rust-cache@v1
|
|
||||||
with:
|
|
||||||
key: cts-a # suffix for cache busting
|
|
||||||
working-directory: wgpu/cts_runner
|
|
||||||
target-dir: wgpu/cts_runner/target
|
|
||||||
|
|
||||||
# We enable line numbers for panics, but that's it
|
|
||||||
- name: disable debug
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
mkdir wgpu/.cargo
|
|
||||||
echo """[profile.dev]
|
|
||||||
debug = 1" > wgpu/.cargo/config.toml
|
|
||||||
|
|
||||||
- name: build CTS runner
|
|
||||||
run: |
|
|
||||||
cargo build --manifest-path wgpu/cts_runner/Cargo.toml
|
|
||||||
|
|
||||||
- name: run CTS
|
|
||||||
if: ${{ matrix.os }} == 'windows-2019'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
cd cts;
|
|
||||||
for backend in ${{ matrix.backends }}; do
|
|
||||||
echo "======= CTS TESTS $backend ======";
|
|
||||||
grep -v '^//' ../wgpu/cts_runner/test.lst | while IFS=$' \t\r\n' read test; do
|
|
||||||
echo "=== Running $test ===";
|
|
||||||
DENO_WEBGPU_BACKEND=$backend cargo run --manifest-path ../wgpu/cts_runner/Cargo.toml --frozen -- ./tools/run_deno --verbose "$test";
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
name: Format
|
name: Format
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
81
.github/workflows/cts.yml
vendored
Normal file
81
.github/workflows/cts.yml
vendored
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
name: CTS
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master, staging]
|
||||||
|
tags: [v0.*]
|
||||||
|
pull_request:
|
||||||
|
types: [labeled, opened, synchronize]
|
||||||
|
|
||||||
|
env:
|
||||||
|
RUST_BACKTRACE: 1
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cts:
|
||||||
|
# Only run if we add this label
|
||||||
|
if: contains(github.event.pull_request.labels.*.name, 'needs testing')
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
# Windows
|
||||||
|
- name: Windows x86_64
|
||||||
|
os: windows-2019
|
||||||
|
target: x86_64-pc-windows-msvc
|
||||||
|
backends: dx12 # dx11
|
||||||
|
|
||||||
|
name: CTS ${{ matrix.name }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: checkout repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: wgpu
|
||||||
|
|
||||||
|
- name: checkout cts
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: gpuweb/cts
|
||||||
|
ref: a44186d9fa1d5babdb4a198e8ef04cf0d7035ebb # from "gh-pages" branch
|
||||||
|
path: cts
|
||||||
|
|
||||||
|
- name: install rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
target: ${{ matrix.target }}
|
||||||
|
profile: minimal
|
||||||
|
|
||||||
|
- name: caching
|
||||||
|
uses: Swatinem/rust-cache@v1
|
||||||
|
with:
|
||||||
|
key: cts-a # suffix for cache busting
|
||||||
|
working-directory: wgpu/cts_runner
|
||||||
|
target-dir: wgpu/cts_runner/target
|
||||||
|
|
||||||
|
# We enable line numbers for panics, but that's it
|
||||||
|
- name: disable debug
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mkdir wgpu/.cargo
|
||||||
|
echo """[profile.dev]
|
||||||
|
debug = 1" > wgpu/.cargo/config.toml
|
||||||
|
|
||||||
|
- name: build CTS runner
|
||||||
|
run: |
|
||||||
|
cargo build --manifest-path wgpu/cts_runner/Cargo.toml
|
||||||
|
|
||||||
|
- name: run CTS
|
||||||
|
if: ${{ matrix.os }} == 'windows-2019'
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
cd cts;
|
||||||
|
for backend in ${{ matrix.backends }}; do
|
||||||
|
echo "======= CTS TESTS $backend ======";
|
||||||
|
grep -v '^//' ../wgpu/cts_runner/test.lst | while IFS=$' \t\r\n' read test; do
|
||||||
|
echo "=== Running $test ===";
|
||||||
|
DENO_WEBGPU_BACKEND=$backend cargo run --manifest-path ../wgpu/cts_runner/Cargo.toml --frozen -- ./tools/run_deno --verbose "$test";
|
||||||
|
done
|
||||||
|
done
|
||||||
Loading…
x
Reference in New Issue
Block a user