mach/libs/gpu/.github/workflows/ci.yml
Wrench[bot] 68c88c46da all: update Zig to version 0.11.0-dev.3883+7166407d8
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-06-29 01:07:55 -07:00

66 lines
2.2 KiB
YAML

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://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.3883+7166407d8.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: build
run: |
rm -rf libs/mach-glfw
rm -rf libs/mach-gpu-dawn
git clone https://github.com/hexops/mach-glfw libs/mach-glfw
git clone https://github.com/hexops/mach-gpu-dawn libs/mach-gpu-dawn
zig build
- name: test
run: zig build test
x86_64-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Zig
run: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri "https://ziglang.org/builds/zig-windows-x86_64-0.11.0-dev.3883+7166407d8.zip" -OutFile "C:\zig.zip"
cd C:\
7z x zig.zip
Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.11.0-dev.3883+7166407d8\"
- name: build
run: |
Remove-Item -Recurse -Force libs/mach-glfw
Remove-Item -Recurse -Force libs/mach-gpu-dawn
git clone https://github.com/hexops/mach-glfw libs/mach-glfw
git clone https://github.com/hexops/mach-gpu-dawn libs/mach-gpu-dawn
zig build
- name: test
run: zig build test
x86_64-macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Zig
run: |
brew install xz
sudo sh -c 'wget -c https://ziglang.org/builds/zig-macos-x86_64-0.11.0-dev.3883+7166407d8.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: build
run: |
rm -rf libs/mach-glfw
rm -rf libs/mach-gpu-dawn
git clone https://github.com/hexops/mach-glfw libs/mach-glfw
git clone https://github.com/hexops/mach-gpu-dawn libs/mach-gpu-dawn
zig build
env:
AGREE: true
- name: test
run: zig build test
env:
AGREE: true