librashader/.github/workflows/build.yml

51 lines
1.4 KiB
YAML
Raw Normal View History

2023-01-16 17:06:15 +11:00
name: build librashader-capi
2023-01-16 07:13:32 +11:00
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
2023-01-16 07:23:19 +11:00
schedule:
- cron: "0 0 * * 6"
2023-01-16 07:13:32 +11:00
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
fail-fast: false
2023-01-16 07:13:32 +11:00
runs-on: ${{ matrix.os }}
steps:
2023-01-16 17:06:15 +11:00
- name: Checkout repository
uses: actions/checkout@v3
- name: Install nightly Rust
2023-01-16 07:23:19 +11:00
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: nightly
override: true
2023-01-16 17:06:15 +11:00
- name: Setup Vulkan SDK
uses: humbletim/setup-vulkan-sdk@v1.2.0
2023-01-16 07:59:53 +11:00
with:
vulkan-query-version: latest
vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Cross, SPIRV-Headers, SPIRV-Reflect, SPIRV-Tools, Glslang
2023-01-16 10:14:27 +11:00
vulkan-use-cache: true
2023-01-16 07:13:32 +11:00
- name: Setup cargo post
uses: baptiste0928/cargo-install@bf6758885262d0e6f61089a9d8c8790d3ac3368f
with:
crate: cargo-post
2023-02-05 18:14:15 +11:00
- uses: actions/setup-python@v1
name: Setup Python
with:
python-version: '3.x'
2023-02-06 08:19:18 +11:00
- run: pip install meson ninja mako
2023-02-05 18:14:15 +11:00
name: Install Meson for spirv-to-dxil-sys
2023-01-16 07:13:32 +11:00
- name: Build dynamic library
run: cargo post build --release --package librashader-capi
2023-01-16 07:23:19 +11:00
- name: Upload build artifacts
2023-01-16 07:13:32 +11:00
uses: actions/upload-artifact@v3.1.2
with:
name: build-outputs
2023-01-16 17:06:15 +11:00
path: "target/release/librashader.*"