gpu: depend on github.com/hexops/mach-gpu-dawn

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-07-08 14:17:37 -07:00
parent c6349d1a97
commit a0116db4fe
5 changed files with 11 additions and 20 deletions

View file

@ -15,12 +15,7 @@ jobs:
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 --recursive https://github.com/hexops/mach-glfw libs/mach-glfw
git clone --recursive https://github.com/hexops/mach-gpu-dawn libs/mach-gpu-dawn
zig build
run: zig build
- name: test
run: zig build test
x86_64-windows:
@ -38,12 +33,7 @@ jobs:
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 --recursive https://github.com/hexops/mach-glfw libs/mach-glfw
git clone --recursive https://github.com/hexops/mach-gpu-dawn libs/mach-gpu-dawn
zig build
run: zig build
- name: test
run: zig build test
x86_64-macos:
@ -58,11 +48,6 @@ jobs:
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 --recursive https://github.com/hexops/mach-glfw libs/mach-glfw
git clone --recursive https://github.com/hexops/mach-gpu-dawn libs/mach-gpu-dawn
zig build
run: zig build
- name: test
run: zig build test

4
libs/gpu/.gitmodules vendored Normal file
View file

@ -0,0 +1,4 @@
[submodule "libs/mach-gpu-dawn"]
path = libs/mach-gpu-dawn
url = https://github.com/hexops/mach-gpu-dawn

View file

@ -1 +0,0 @@
../../glfw

View file

@ -1 +0,0 @@
../../gpu-dawn

@ -0,0 +1 @@
Subproject commit a33e4030dcc0d6fa6c0abf3419000b504074511a