Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
slimsag committed Oct 20, 2023
1 parent dd0fcff commit 06bc1ed
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
sudo apt install xz-utils
sudo sh -c 'wget -c https://pkg.machengine.org/zig/zig-linux-x86_64-0.12.0-dev.1092+68ed78775.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: install (debug)
run: DAWN_FROM_SOURCE=true zig build dawn -Dcpu=x86_64_v2 -Dtarget=x86_64-linux-gnu
run: DAWN_FROM_SOURCE=true zig build install -Dcpu=x86_64_v2 -Dtarget=x86_64-linux-gnu
- name: upload (debug)
run: ./dev/upload-release.sh
env:
Expand All @@ -37,7 +37,7 @@ jobs:
sudo apt install xz-utils
sudo sh -c 'wget -c https://pkg.machengine.org/zig/zig-linux-x86_64-0.12.0-dev.1092+68ed78775.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: install (release-fast)
run: DAWN_FROM_SOURCE=true zig build dawn -Dcpu=x86_64_v2 -Doptimize=ReleaseFast -Dtarget=x86_64-linux-gnu
run: DAWN_FROM_SOURCE=true zig build install -Dcpu=x86_64_v2 -Doptimize=ReleaseFast -Dtarget=x86_64-linux-gnu
- name: upload (release-fast)
run: ./dev/upload-release.sh
env:
Expand All @@ -56,7 +56,7 @@ jobs:
sudo apt install xz-utils
sudo sh -c 'wget -c https://pkg.machengine.org/zig/zig-linux-x86_64-0.12.0-dev.1092+68ed78775.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: install (debug)
run: DAWN_FROM_SOURCE=true zig build dawn -Dtarget=x86_64-linux-musl -Dcpu=x86_64_v2
run: DAWN_FROM_SOURCE=true zig build install -Dtarget=x86_64-linux-musl -Dcpu=x86_64_v2
- name: upload (debug)
run: ./dev/upload-release.sh
env:
Expand All @@ -75,7 +75,7 @@ jobs:
sudo apt install xz-utils
sudo sh -c 'wget -c https://pkg.machengine.org/zig/zig-linux-x86_64-0.12.0-dev.1092+68ed78775.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: install (release-fast)
run: DAWN_FROM_SOURCE=true zig build dawn -Doptimize=ReleaseFast -Dtarget=x86_64-linux-musl -Dcpu=x86_64_v2
run: DAWN_FROM_SOURCE=true zig build install -Doptimize=ReleaseFast -Dtarget=x86_64-linux-musl -Dcpu=x86_64_v2
- name: upload (release-fast)
run: ./dev/upload-release.sh
env:
Expand All @@ -94,7 +94,7 @@ jobs:
sudo apt install xz-utils
sudo sh -c 'wget -c https://pkg.machengine.org/zig/zig-linux-x86_64-0.12.0-dev.1092+68ed78775.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: install (debug)
run: DAWN_FROM_SOURCE=true zig build dawn -Dtarget=aarch64-linux-gnu
run: DAWN_FROM_SOURCE=true zig build install -Dtarget=aarch64-linux-gnu
- name: upload (debug)
run: ./dev/upload-release.sh
env:
Expand All @@ -113,7 +113,7 @@ jobs:
sudo apt install xz-utils
sudo sh -c 'wget -c https://pkg.machengine.org/zig/zig-linux-x86_64-0.12.0-dev.1092+68ed78775.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: install (release-fast)
run: DAWN_FROM_SOURCE=true zig build dawn -Doptimize=ReleaseFast -Dtarget=aarch64-linux-gnu
run: DAWN_FROM_SOURCE=true zig build install -Doptimize=ReleaseFast -Dtarget=aarch64-linux-gnu
- name: upload (release-fast)
run: ./dev/upload-release.sh
env:
Expand All @@ -132,7 +132,7 @@ jobs:
sudo apt install xz-utils
sudo sh -c 'wget -c https://pkg.machengine.org/zig/zig-linux-x86_64-0.12.0-dev.1092+68ed78775.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: install (debug)
run: DAWN_FROM_SOURCE=true zig build dawn -Dtarget=aarch64-linux-musl
run: DAWN_FROM_SOURCE=true zig build install -Dtarget=aarch64-linux-musl
- name: upload (debug)
run: ./dev/upload-release.sh
env:
Expand All @@ -151,7 +151,7 @@ jobs:
sudo apt install xz-utils
sudo sh -c 'wget -c https://pkg.machengine.org/zig/zig-linux-x86_64-0.12.0-dev.1092+68ed78775.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: install (release-fast)
run: DAWN_FROM_SOURCE=true zig build dawn -Doptimize=ReleaseFast -Dtarget=aarch64-linux-musl
run: DAWN_FROM_SOURCE=true zig build install -Doptimize=ReleaseFast -Dtarget=aarch64-linux-musl
- name: upload (release-fast)
run: ./dev/upload-release.sh
env:
Expand All @@ -173,7 +173,9 @@ jobs:
7z x zig.zip
Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.12.0-dev.1092+68ed78775\"
- name: install (debug)
run: DAWN_FROM_SOURCE=true zig build dawn -Dtarget=x86_64-windows-gnu -Dcpu=x86_64_v2
run: zig build install -Dtarget=x86_64-windows-gnu -Dcpu=x86_64_v2
env:
DAWN_FROM_SOURCE: true
- name: upload (debug)
run: ./dev/upload-release.sh
shell: bash
Expand All @@ -197,7 +199,9 @@ jobs:
7z x zig.zip
Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.12.0-dev.1092+68ed78775\"
- name: install (release-fast)
run: DAWN_FROM_SOURCE=true zig build dawn -Dtarget=x86_64-windows-gnu -Doptimize=ReleaseFast -Dcpu=x86_64_v2
run: zig build install -Dtarget=x86_64-windows-gnu -Doptimize=ReleaseFast -Dcpu=x86_64_v2
env:
DAWN_FROM_SOURCE: true
- name: upload (release-fast)
run: ./dev/upload-release.sh
shell: bash
Expand All @@ -219,7 +223,7 @@ jobs:
brew install xz
sudo sh -c 'wget -c https://pkg.machengine.org/zig/zig-macos-x86_64-0.12.0-dev.1092+68ed78775.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: install (debug)
run: DAWN_FROM_SOURCE=true zig build dawn -Dtarget=x86_64-macos
run: DAWN_FROM_SOURCE=true zig build install -Dtarget=x86_64-macos
- name: upload (debug)
run: ./dev/upload-release.sh
env:
Expand All @@ -239,7 +243,7 @@ jobs:
brew install xz
sudo sh -c 'wget -c https://pkg.machengine.org/zig/zig-macos-x86_64-0.12.0-dev.1092+68ed78775.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: install (release-fast)
run: DAWN_FROM_SOURCE=true zig build dawn -Doptimize=ReleaseFast -Dtarget=x86_64-macos
run: DAWN_FROM_SOURCE=true zig build install -Doptimize=ReleaseFast -Dtarget=x86_64-macos
- name: upload (release-fast)
run: ./dev/upload-release.sh
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/m1_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: install (debug)
run: zig build install -Dtarget=aarch64-macos
run: DAWN_FROM_SOURCE=true zig build install -Dtarget=aarch64-macos
- name: upload (debug)
run: |
./dev/upload-release.sh
Expand All @@ -26,7 +26,7 @@ jobs:
RELEASE_NAME: aarch64-macos-none_debug
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: install (release-fast)
run: zig build install -Doptimize=ReleaseFast -Dtarget=aarch64-macos
run: DAWN_FROM_SOURCE=true zig build install -Doptimize=ReleaseFast -Dtarget=aarch64-macos
- name: upload (release-fast)
run: ./dev/upload-release.sh
env:
Expand Down
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub fn build(b: *Build) !void {
// Just to demonstrate/test linking. This is not a functional example, see the mach/gpu examples
// or Dawn C++ examples for functional example code.
const example = b.addExecutable(.{
.name = "dawn-example",
.name = "empty",
.root_source_file = .{ .path = "src/main.zig" },
.target = target,
.optimize = optimize,
Expand Down
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
},
.dependencies = .{
.xcode_frameworks = .{
.url = "https://pkg.machengine.org/xcode-frameworks/e77a5c6809a0d3f62ec549ee56e9d2dc6807cd5b.tar.gz",
.hash = "12202044ed9fd69af156b0afde619ffd1d111554c557f57ab670ca9960e76d60d0b8",
.url = "https://pkg.machengine.org/xcode-frameworks/1b5863a77384f3ac633b496cf6decbf42ceb1ed2.tar.gz",
.hash = "12209ccfa1c7320f1d4eed0baf718efa9b4c8d8e42595a019a7569c2adf48d27c262",
},
.direct3d_headers = .{
.url = "https://pkg.machengine.org/direct3d-headers/9617cfd497fae598610a7b0a4be0b035e7308e93.tar.gz",
Expand Down

0 comments on commit 06bc1ed

Please sign in to comment.