configlet icon indicating copy to clipboard operation
configlet copied to clipboard

.github: bump macos-12 to macos-13

Open ee7 opened this issue 1 year ago • 0 comments

This is the newer x86_64 macOS image, and is not in beta. See here.

It would be possible to use macos-14 somewhere, building a macOS arm64 configlet asset natively rather than cross-compiling via Zig. But let's not consider that in this PR.


To-do:

  • [ ] Resolve error in the build workflow, in particular the cross-compile job for aarch64-macos-none
CC: ../nimdir/lib/std/sysrand.nim
/Users/runner/.cache/nim/configlet_r/@m..@snimdir@slib@[email protected]:9:10: fatal error: 'Security/SecRandom.h' file not found
nimble.nim(304)          buildFromDir
    9 | #include <Security/SecRandom.h>

      |          ^~~~~~~~~~~~~~~~~~~~~~
    Error:  Build failed for the package: configlet
1 error generated.
     Info:  Nimble data file "/Users/runner/.nimble/nimbledata2.json" has been saved.
Error: execution of an external compiler program 'zigcc -c -w -ferror-limit=3 -pthread -target aarch64-macos-none -Os   -I/Users/runner/work/exercism-configlet/exercism-configlet/nimdir/lib -I/Users/runner/work/exercism-configlet/exercism-configlet/src -o /Users/runner/.cache/nim/configlet_r/@m..@snimdir@slib@[email protected] /Users/runner/.cache/nim/configlet_r/@m..@snimdir@slib@[email protected]' failed with exit code: 1

I think it just needs to pass to the linker:

-framework Security

ee7 avatar Jul 10 '24 21:07 ee7