build spirv-to-dxil-rs #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build spirv-to-dxil-rs | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
schedule: | |
- cron: "0 0 * * 6" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Sparse checkout mesa | |
run: | | |
git submodule update --init --filter=blob:none --depth 1 --single-branch --progress spirv-to-dxil-sys/native/mesa | |
git submodule absorbgitdirs | |
git -C spirv-to-dxil-sys/native/mesa config core.sparseCheckout true | |
git -C spirv-to-dxil-sys/native/mesa config core.symlinks false | |
cp spirv-to-dxil-sys/native/mesa-sparse-checkout .git/modules/spirv-to-dxil-sys/native/mesa/info/sparse-checkout | |
git submodule foreach git sparse-checkout reapply | |
- name: Install Rust | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
override: true | |
- name: Build spirv-to-dxil-rs | |
run: cargo build | |
- name: Test spirv-to-dxil-rs | |
run: cargo test |