feat: windows and raspberry pi support #336
Workflow file for this run
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: push | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
renderling-build-shaders: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- run: | | |
# ensure the shader binaries were properly checked in | |
rm -rf crates/renderling/src/linkage/*.spv | |
cd shaders && cargo run --release && cd .. | |
git diff --exit-code --no-ext-diff crates/renderling/src/linkage | |
renderling-clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-all-crates: "true" | |
cache-on-failure: "true" | |
- run: cargo clippy | |
# windows w/ gpu | |
renderling-test-windows: | |
runs-on: Windows | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
channel: nightly-x86_64-pc-windows-msvc | |
targets: x86_64-pc-windows-msvc | |
- run: rustup show | |
- run: cargo test -j 1 -- --test-threads=1 | |
env: | |
RUST_BACKTRACE: 1 | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-output-windows | |
path: test_output/**/*.png | |
# ubuntu linux w/ software rasterizer | |
renderling-test-lavapipe: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
channel: stable | |
- run: apt-get -q -y update && apt-get -q -y install mesa-vulkan-drivers libvulkan1 vulkan-tools vulkan-validationlayers | |
- run: cargo test | |
env: | |
RUST_BACKTRACE: 1 | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-output-lavapipe | |
path: test_output/**/*.png | |
# various linuxes w/ gpus | |
renderling-test: | |
strategy: | |
matrix: | |
label: [intel, amd, pi4] | |
runs-on: ${{ matrix.label }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
toolchain: stable | |
- run: apt-get -q -y update && apt-get -q -y install libvulkan1 vulkan-tools vulkan-validationlayers | |
- run: cargo test -- --test-threads=1 | |
env: | |
RUST_BACKTRACE: 1 | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-output-${{ matrix.label }} | |
path: test_output/**/*.png | |