gpu-dawn: move mach-glfw cloning to CI script for now
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
8035e30ad8
commit
c0901d4006
3 changed files with 6 additions and 6 deletions
4
gpu-dawn/.github/workflows/ci.yml
vendored
4
gpu-dawn/.github/workflows/ci.yml
vendored
|
|
@ -15,6 +15,8 @@ jobs:
|
|||
run: |
|
||||
sudo apt install xz-utils
|
||||
sudo sh -c 'wget -c https://ziglang.org/builds/zig-linux-x86_64-0.9.0-dev.2023+16b753549.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
|
||||
- name: Clone mach-glfw
|
||||
run: git clone https://github.com/hexops/mach-glfw libs/mach-glfw
|
||||
- name: test
|
||||
run: zig build test && find zig-out/
|
||||
# TODO(build-system): enable windows CI here once gpu-dawn builds under Windows
|
||||
|
|
@ -48,6 +50,8 @@ jobs:
|
|||
run: |
|
||||
brew install xz
|
||||
sudo sh -c 'wget -c https://ziglang.org/builds/zig-macos-x86_64-0.9.0-dev.2023+16b753549.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
|
||||
- name: Clone mach-glfw
|
||||
run: git clone https://github.com/hexops/mach-glfw libs/mach-glfw
|
||||
- name: test
|
||||
run: zig build test && find zig-out/
|
||||
env:
|
||||
|
|
|
|||
2
gpu-dawn/.github/workflows/m1_ci.yml
vendored
2
gpu-dawn/.github/workflows/m1_ci.yml
vendored
|
|
@ -19,6 +19,8 @@ jobs:
|
|||
- name: Setup Zig
|
||||
run: |
|
||||
zig version
|
||||
- name: Clone mach-glfw
|
||||
run: git clone https://github.com/hexops/mach-glfw libs/mach-glfw
|
||||
- name: test
|
||||
run: zig build test && find zig-out/
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -7,12 +7,6 @@ pub fn build(b: *Builder) void {
|
|||
const mode = b.standardReleaseOptions();
|
||||
const target = b.standardTargetOptions(.{});
|
||||
|
||||
// TODO(build-system): remove dependency on GLFW (Dawn no longer requires it / we can
|
||||
// eliminate it.)
|
||||
if (!dirExists("libs/mach-glfw")) {
|
||||
try gitClone(b.allocator, "https://github.com/hexops/mach-glfw", "libs/mach-glfw");
|
||||
}
|
||||
|
||||
const lib = b.addStaticLibrary("gpu", "src/main.zig");
|
||||
lib.setBuildMode(mode);
|
||||
lib.setTarget(target);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue