2024-02-21 17:00:23 +11:00
|
|
|
name: integration test shader reflection
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
approve-full-test:
|
|
|
|
name: "approval"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Approve
|
2024-02-23 16:34:19 +11:00
|
|
|
run: echo Full test suite for PRs needs approval by a maintainer
|
2024-02-24 17:59:56 +11:00
|
|
|
test-presets:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
continue-on-error: false
|
2024-02-21 17:00:23 +11:00
|
|
|
environment:
|
|
|
|
name: full-test
|
|
|
|
needs: [approve-full-test]
|
2024-02-24 17:59:56 +11:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Install nightly Rust
|
|
|
|
uses: dtolnay/rust-toolchain@nightly
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
- name: Test preset processing
|
|
|
|
run: cargo test -p librashader --features=github-ci --test reflect -- --nocapture preprocess_all_slang_presets_parsed
|
|
|
|
test-naga:
|
|
|
|
runs-on: ubuntu-latest
|
2024-02-21 17:00:23 +11:00
|
|
|
continue-on-error: false
|
2024-02-24 17:59:56 +11:00
|
|
|
environment:
|
|
|
|
name: full-test
|
|
|
|
needs: [ approve-full-test ]
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Install nightly Rust
|
|
|
|
uses: dtolnay/rust-toolchain@nightly
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
- name: Test Naga reflection
|
|
|
|
run: cargo test -p librashader --features=github-ci --test reflect -- --nocapture compile_all_slang_presets_wgsl_naga compile_all_slang_presets_msl_naga compile_all_slang_presets_spirv_naga
|
|
|
|
test-cross:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
continue-on-error: false
|
|
|
|
environment:
|
|
|
|
name: full-test
|
|
|
|
needs: [ approve-full-test ]
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Install nightly Rust
|
|
|
|
uses: dtolnay/rust-toolchain@nightly
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
- name: Test SPIRV-Cross
|
|
|
|
run: cargo test -p librashader --features=github-ci --test reflect -- --nocapture compile_all_slang_presets_msl_cross compile_all_slang_presets_glsl_cross compile_all_slang_presets_hlsl_cross compile_all_slang_presets_spirv_cross
|
|
|
|
test-dxil:
|
|
|
|
runs-on: windows-latest
|
|
|
|
continue-on-error: false
|
|
|
|
environment:
|
|
|
|
name: full-test
|
|
|
|
needs: [ approve-full-test ]
|
2024-02-21 17:00:23 +11:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2024-02-23 16:34:19 +11:00
|
|
|
uses: actions/checkout@v4
|
2024-02-21 17:00:23 +11:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Install nightly Rust
|
2024-02-21 17:05:59 +11:00
|
|
|
uses: dtolnay/rust-toolchain@nightly
|
2024-02-21 17:00:23 +11:00
|
|
|
with:
|
|
|
|
toolchain: nightly
|
2024-02-24 17:59:56 +11:00
|
|
|
- name: Test DXIL
|
|
|
|
run: cargo test -p librashader --features=github-ci --test reflect -- --nocapture compile_all_slang_presets_dxil_cross
|