Files
wgpu/.github/workflows/cts.yml
Jamie Nicol 0aa1baface [CI] Install WARP for CTS run
This means we use a reliable version rather than depending on whatever
the worker has installed.
2025-06-17 09:14:44 -04:00

83 lines
1.9 KiB
YAML

name: CTS
on:
pull_request:
types: [labeled, opened, synchronize]
schedule:
- cron: "33 2 * * *"
workflow_dispatch:
env:
CARGO_INCREMENTAL: false
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
MSRV: "1.84"
jobs:
cts:
strategy:
fail-fast: false
matrix:
include:
# Windows
- name: Windows x86_64
os: windows-2022
target: x86_64-pc-windows-msvc
# Mac
- name: Mac aarch64
os: macos-14
target: x86_64-apple-darwin
# Linux
- name: Linux x86_64
os: ubuntu-24.04
target: x86_64-unknown-linux-gnu
name: CTS ${{ matrix.name }}
runs-on: ${{ matrix.os }}
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: Install Repo MSRV toolchain
run: |
rustup toolchain install ${{ env.MSRV }} --no-self-update --profile=minimal --target ${{ matrix.target }}
rustup override set ${{ env.MSRV }}
cargo -V
- name: caching
uses: Swatinem/rust-cache@v2
with:
prefix-key: v1-rust # Increment version for cache busting
cache-directories: cts
# We enable line numbers for panics, but that's it
- name: disable debug
shell: bash
run: |
mkdir -p .cargo
cat <<EOF >> .cargo/config.toml
[profile.dev]
debug = 1
EOF
- name: (Windows) Install DXC
if: matrix.os == 'windows-2022'
uses: ./.github/actions/install-dxc
- name: (Windows) Install WARP
if: matrix.os == 'windows-2022'
uses: ./.github/actions/install-warp
with:
target-dirs: "target/debug"
- name: (Linux) Install Mesa
if: matrix.os == 'ubuntu-24.04'
uses: ./.github/actions/install-mesa
- name: run CTS
shell: bash
run: cargo xtask cts