hlsl: add padding to structs where needed #833
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: CI | |
on: | |
- push | |
- pull_request | |
jobs: | |
x86_64-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Zig | |
run: | | |
sudo apt install xz-utils | |
sudo sh -c 'wget -c https://pkg.machengine.org/zig/zig-linux-x86_64-0.12.0-dev.2063+804cee3b9.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin' | |
- name: Setup Vulkan SDK and SpirV tools | |
run: | | |
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc | |
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list | |
sudo apt update | |
sudo apt install vulkan-sdk spirv-tools | |
- name: build | |
run: zig build | |
- name: test | |
run: zig build test | |
- name: validate spirv output | |
run: bash tools/validate_spirv.sh | |
x86_64-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Zig | |
run: | | |
$ProgressPreference = 'SilentlyContinue' | |
Invoke-WebRequest -Uri 'https://pkg.machengine.org/zig/zig-windows-x86_64-0.12.0-dev.2063+804cee3b9.zip' -OutFile 'C:\zig.zip' | |
cd C:\ | |
7z x zig.zip | |
Add-Content $env:GITHUB_PATH 'C:\zig-windows-x86_64-0.12.0-dev.2063+804cee3b9\' | |
- name: build | |
run: zig build | |
x86_64-macos: | |
runs-on: macos-12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Zig | |
run: | | |
brew uninstall --ignore-dependencies libx11 # https://github.com/ziglang/zig/issues/11066 | |
brew install xz | |
sudo sh -c 'wget -c https://pkg.machengine.org/zig/zig-macos-x86_64-0.12.0-dev.2063+804cee3b9.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin' | |
- name: build | |
run: zig build |