Stephen Gutekanst
b5a9acc879
CI: update to latest Zig master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-05 03:06:04 -07:00
Stephen Gutekanst
8dfcc8807a
gpu-dawn: CI: update to latest Zig master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-05 03:05:22 -07:00
Stephen Gutekanst
07dbd1a18f
glfw: CI: update to latest Zig master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-05 03:04:41 -07:00
Stephen Gutekanst
877779848d
gpu-dawn: CI: correctly clone libs/mach-glfw on Windows
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-05 02:51:07 -07:00
Stephen Gutekanst
ab58515b4b
gpu-dawn: CI: use actions/checkout@v3 on Windows
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 22:25:37 -07:00
Stephen Gutekanst
50b2c9d705
gpu-dawn: CI: begin producing binaries for x86_64-windows
...
Helps hexops/mach#86
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 21:43:15 -07:00
Stephen Gutekanst
ba0c0c9354
gpu-dawn: dev: add Windows support for release bundling/upload
...
Helps hexops/mach#86
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 21:43:15 -07:00
Release automation
d7eebaa645
gpu-dawn: update to latest binary release
2022-03-05 03:24:46 +00:00
Stephen Gutekanst
9db68d421f
gpu-dawn: update to latest Dawn + windows patches
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 19:54:06 -07:00
Release automation
796841fd71
gpu-dawn: update to latest binary release
2022-03-05 02:02:56 +00:00
Stephen Gutekanst
1e2c49d14e
gpu-dawn: build Dawn & DirectXShaderCompiler for windows
...
Helps hexops/mach#86
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 18:33:44 -07:00
Stephen Gutekanst
bc4f6f36c5
dev: dont complain about unbound GITHUB_ACTIONS env var when pushing subrepos
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 17:45:32 -07:00
Release automation
c22909eb88
gpu-dawn: update to latest binary release
2022-03-04 23:46:46 +00:00
Stephen Gutekanst
020ee37686
glfw: update system_sdk notes
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 16:35:43 -07:00
Stephen Gutekanst
6cbf0508b1
glfw: system_sdk: add Windows system SDK with updated DirectX headers
...
This effectively provides all you need to develop & cross compile DirectX 11/12
applications with `mach/glfw` (or just Zig in general, by copying `system_sdk.zig`
into your own project.)
Helps hexops/mach#86
Helps hexops/mach#59
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 16:26:58 -07:00
Stephen Gutekanst
dc8ffa9e87
gpu-dawn: correct submodule path
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 16:17:25 -07:00
Stephen Gutekanst
d35957766b
glfw: use lowercase shell32 for Linux
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 16:10:51 -07:00
Stephen Gutekanst
9ac5b603a2
gpu-dawn: add libs/DirectXShaderCompiler submodule / minor fork
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 16:05:47 -07:00
Stephen Gutekanst
16c581b2ab
glfw: fix x86_64-windows-msvc compilation support
...
This fixes compilation for msvc ABI. This currently only works under Windows,
I believe because Zig requires the Windows SDK to be present for msvc compilation
/ does not allow cross compilation with MSVC. Still, this is nice to have.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 15:59:36 -07:00
Stephen Gutekanst
646560c834
glfw: remove alignment from packed structs / fix compilation with latest Zig
...
Not sure why we had these here, but alignment on a packed struct seems somewhat
nonsensical (after all, it's fields are packed as closely together as possible
so what would alignment refer to?) removing seems fine and fixes compilation with
latest Zig:
```
/Users/slimsag/Desktop/hexops/mach/gpu-dawn/libs/mach-glfw/src/hat.zig:8:20: error: unable to override alignment of packed struct fields
up: bool align(@alignOf(u8)) = false,
^
/Users/slimsag/Desktop/hexops/mach/gpu-dawn/libs/mach-glfw/src/mod.zig:10:23: error: unable to override alignment of packed struct fields
shift: bool align(@alignOf(c_int)) = false,
``` ^
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-04 15:48:40 -07:00
Release automation
cd0262fb9e
gpu-dawn: update to latest binary release
2022-03-01 02:09:49 +00:00
Stephen Gutekanst
95d33f2eb8
gpu-dawn: use binary releases for musl libc
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-28 18:42:32 -07:00
Release automation
49fc433b8f
gpu-dawn: update to latest binary release
2022-02-28 09:55:14 +00:00
Stephen Gutekanst
bcbddfeec8
gpu-dawn: CI: build releases for glibc AND musl
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-28 02:27:49 -07:00
Stephen Gutekanst
5b594ce40e
gpu-dawn: do not include OS and libc version in download URLs
...
I'm not sure including the OS and libc version in download URLs makes much sense. It may
be useful to include them as metadata in the future alongside the release, but it seems
better to exclude these from the URL (especially so that others can download them from a
script without fear of them changing for non-Zig consumption.)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-28 02:20:37 -07:00
Stephen Gutekanst
a68c73bc68
gpu-dawn: CI: be more explicit about which libc we target
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-28 02:01:20 -07:00
Stephen Gutekanst
ae56a7127f
gpu-dawn: improve error formatting
...
clearer now:
```
$ zig build run-dawn-example -Dtarget=x86_64-linux
error: gpu-dawn binaries for x86_64-linux.3.16...5.10.81-musl not available.
error: -> open an issue: https://github.com/hexops/mach/issues
error: -> build from source (takes 5-15 minutes):
error: use -Ddawn-from-source=true or set `Options.from_source = true`
```
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-28 01:29:31 -07:00
Release automation
e9dbc5a92b
gpu-dawn: update to latest binary release
2022-02-28 05:52:08 +00:00
Stephen Gutekanst
1b579559e0
gpu-dawn: when using binary release, also use headers from release
...
With this change, you do not even need to download the generated Dawn repository.
This reduces the download size substantially, as that repository is around 1.2G.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 22:25:52 -07:00
Stephen Gutekanst
5134d4997d
gpu-dawn: include headers for external consumers
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 20:55:49 -07:00
Release automation
9852320a0a
gpu-dawn: update to latest binary release
2022-02-28 03:15:06 +00:00
Stephen Gutekanst
f607b70c09
gpu-dawn: CI: cleanup between bundle regeneration
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 19:48:29 -07:00
Stephen Gutekanst
79c9b32982
gpu-dawn: CI: correctly upload libdawn
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 19:39:15 -07:00
Stephen Gutekanst
8538c59a48
gpu-dawn: CI: note Zig version used to produce binary
...
Fixes hexops/mach#172
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 19:31:51 -07:00
Stephen Gutekanst
028b7d8034
gpu-dawn: CI: upload headers.json + tarball
...
Fixes hexops/mach#171
Helps hexops/mach#109
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 19:29:58 -07:00
Stephen Gutekanst
262422edde
gpu-dawn: remove now-unused spirv-cross compilation
...
Dawn no longer uses spirv-cross for OpenGL backends:
a52abab38c
Hence, we no longer need to compile it.
Helps #124
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 16:48:33 -07:00
Release automation
983edf7c07
gpu-dawn: update to latest binary release
2022-02-27 23:42:22 +00:00
Stephen Gutekanst
6a227db2a8
gpu-dawn: CI: correct potential race condition pointing to wrong binary release
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 16:20:21 -07:00
Stephen Gutekanst
f44bb0673e
gpu-dawn: remove include that is no longer necessary
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 15:51:56 -07:00
Stephen Gutekanst
805de702ee
gpu-dawn: rename -Dfrom-source to -Ddawn-from-source
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 15:51:56 -07:00
Stephen Gutekanst
4860240e4e
gpu-dawn: if binaries are unavailable, exit with error
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 15:51:56 -07:00
Release automation
54772dd98c
gpu-dawn: update to latest binary release
2022-02-27 22:27:06 +00:00
Release automation
2d30e20afd
gpu-dawn: update to latest binary release
2022-02-27 22:18:51 +00:00
Stephen Gutekanst
1de670ef9a
gpu-dawn: correct binary target triple we download
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 14:59:17 -07:00
Stephen Gutekanst
4ba7172626
gpu-dawn: explicitly target <arch>-macos.12
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 14:53:53 -07:00
Stephen Gutekanst
00ec15a4b0
gpu-dawn: correct macOS binary availability check
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 14:39:21 -07:00
Stephen Gutekanst
f48a040446
gpu-dawn: log when binaries are not available for clarity
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 14:38:40 -07:00
Release automation
636ce5becd
gpu-dawn: update to latest binary release
2022-02-27 21:13:53 +00:00
Stephen Gutekanst
85dbc406ff
gpu-dawn: abide by GitHub release filename restrictions
...
GitHub releases impose [some weird restrictions on uploaded filenames](https://twitter.com/slimsag/status/1498025997987315713 ),
so we now abide by those.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 13:48:16 -07:00
Release automation
d5682a2cd3
gpu-dawn: update to latest binary release
2022-02-27 07:55:16 +00:00