gpu: CI: clone dependencies ourselves
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
fdd3270a0f
commit
192ca40032
1 changed files with 21 additions and 2 deletions
23
libs/gpu/.github/workflows/ci.yml
vendored
23
libs/gpu/.github/workflows/ci.yml
vendored
|
|
@ -12,8 +12,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo apt install xz-utils
|
sudo apt install xz-utils
|
||||||
sudo sh -c 'wget -c https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.3380+7e0a02ee2.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
|
sudo sh -c 'wget -c https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.3380+7e0a02ee2.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
|
||||||
- name: x86_64-linux -> aarch64-macos
|
- name: build
|
||||||
run: zig build -Dtarget=aarch64-macos.12-none
|
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
|
- name: test
|
||||||
run: zig build test
|
run: zig build test
|
||||||
x86_64-windows:
|
x86_64-windows:
|
||||||
|
|
@ -28,6 +33,13 @@ jobs:
|
||||||
cd C:\
|
cd C:\
|
||||||
7z x zig.zip
|
7z x zig.zip
|
||||||
Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.11.0-dev.3380+7e0a02ee2\"
|
Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.11.0-dev.3380+7e0a02ee2\"
|
||||||
|
- 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
|
- name: test
|
||||||
run: zig build test
|
run: zig build test
|
||||||
x86_64-macos:
|
x86_64-macos:
|
||||||
|
|
@ -39,5 +51,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
brew install xz
|
brew install xz
|
||||||
sudo sh -c 'wget -c https://ziglang.org/builds/zig-macos-x86_64-0.11.0-dev.3380+7e0a02ee2.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
|
sudo sh -c 'wget -c https://ziglang.org/builds/zig-macos-x86_64-0.11.0-dev.3380+7e0a02ee2.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
|
- name: test
|
||||||
run: zig build test
|
run: zig build test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue