Skip to content

build spirv-to-dxil-rs #44

build spirv-to-dxil-rs

build spirv-to-dxil-rs #44

Workflow file for this run

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
- if: matrix.os == 'ubuntu-latest'
name: Install libdrm
run: sudo apt-get install -y libdrm-dev
- name: Setup Vulkan SDK
uses: humbletim/[email protected]
with:
vulkan-query-version: latest
vulkan-components: Vulkan-Headers, Vulkan-Loader
vulkan-use-cache: true
- uses: actions/setup-python@v1
name: Setup Python
with:
python-version: '3.x'
- run: pip install meson ninja mako
name: Install Meson
- name: Build spirv-to-dxil-rs
run: cargo build
- name: Test spirv-to-dxil-rs
run: cargo test