kassane / sokol-d

D bindings for the sokol headers (https://github.com/floooh/sokol)
http://sokol-d.dub.pm/
zlib License
11 stars 5 forks source link

Run `zig build shaders` #37

Closed kassane closed 1 hour ago

kassane commented 23 hours ago

Hmm, btw, with a current Zig version I can't run the shaders task anymore, because the sokol-shdc binaries in the Zig cache don't have the execute file attribute set (this is on macOS).

Does that sound familiar somehow?

I'll need to merge the PR ahead of the sokol merge though (which I'll do within the next few hours).

E.g.:

sokol-d ➤ zig build shaders
shaders
└─ run /Users/floh/.cache/zig/p/12202522a9311ecc8ddcefd60b3943d1ca5a6717f5230a193ca63bf3d53c29c59bf7/>bin/osx_arm64/sokol-shdc failure
error: unable to spawn /Users/floh/.cache/zig/>p/12202522a9311ecc8ddcefd60b3943d1ca5a6717f5230a193ca63bf3d53c29c59bf7/bin/osx_arm64/sokol-shdc: >AccessDenied

Originally posted by @floooh in https://github.com/kassane/sokol-d/issues/31#issuecomment-2462611627

kassane commented 23 hours ago

Currently it runs on linux & windows. I don't know if there is some access issue on macOS. I'll attempt shdc execution through CI/CD and in this way we can know if it's running on all targets.


Edit https://github.com/kassane/sokol-d/actions/runs/11824014811

Run zig build shaders
shaders
+- run /Users/runner/.cache/zig/p/12202522a9311ecc8ddcefd60b3943d1ca5a6717f5230a193ca63bf3d53c29c59bf7/bin/osx_arm64/sokol-shdc failure
error: unable to spawn /Users/runner/.cache/zig/p/12202522a9311ecc8ddcefd60b3943d1ca5a6717f5230a193ca63bf3d53c29c59bf7/bin/osx_arm64/sokol-shdc: AccessDenied
shaders