www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Github Actions on MacOS?

reply Atila Neves <atila.neves gmail.com> writes:
Does anyone have a working configuration for running CI on Github 
on MacOS? I just tried macos-15 and macos-15-intel and both of 
them have bizarre failures.

macos-15:

```
Error Failed to invoke the compiler 
/Users/runner/hostedtoolcache/dmd/2.111.0/arm64/dmd2/osx/bin/dmd 
to determine the build platform: Error: Process completed with 
exit code 2.
```

macos-15-intel:

```
ld: symbol count from symbol table and dynamic symbol table 
differ in 
'.dub/build/unittest-unittest-cov-posix.osx.darwin-x86_64-dmd_v2.099.1-A62A8129828DF2632493543
85B0147E/ut_pass.o' in
'.dub/build/unittest-unittest-cov-posix.osx.darwin-x86_64-dmd_v2.099.1-A62A8129828DF2632493543B85B0147E/ut_pass.o'
clang: error: linker command failed with exit code 1 (use -v to 
see invocation)
Error: linker exited with status 1
uncaught exception
object.Exception source/dub/compilers/compiler.d(134): 
/Users/runner/hostedtoolcache/dmd/2.099.1/x64/dmd2/osx/bin/dmd 
failed with exit code 1.
----------------
??:? pure  safe bool 
std.exception.enforce!().enforce!(bool).enforce(bool, lazy 
const(char)[], immutable(char)[], ulong) [0x1057db6da]
??:? void 
dub.compilers.compiler.Compiler.invokeTool(immutable(char)[][], 
void delegate(int, immutable(char)[]), 
immutable(char)[][immutable(char)[]]) [0x1055f757a]
??:? void dub.compilers.dmd.DMDCompiler.invokeLinker(in 
dub.compilers.buildsettings.BuildSettings, in 
dub.platform.BuildPlatform, immutable(char)[][], void 
delegate(int, immutable(char)[])) [0x105600aa4]
??:? void 
dub.generators.build.BuildGenerator.buildWithCompiler(dub.generators.generato
.GeneratorSettings, dub.compilers.buildsettings.BuildSettings) [0x1055eb47a]
??:? bool 
dub.generators.build.BuildGenerator.performCachedBuild(dub.generators.generato
.GeneratorSettings, dub.compilers.buildsettings.BuildSettings, in
dub.package_.Package, immutable(char)[], immutable(char)[], in
dub.package_.Package[], in dub.internal.vibecompat.inet.path.NativePath[], out
dub.internal.vibecompat.inet.path.NativePath) [0x1055e97c0]
/Users/runner/work/unit-threaded/unit-threaded/build/ut.sh: line 
13:  2218 Abort trap: 6           dub test -q 
--build=unittest-cov --compiler="$DC"
```

Thanks.
Nov 13
next sibling parent "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
Use macos-14, we will talk tomorrow about 15.
Nov 13
prev sibling next sibling parent Steven Schveighoffer <schveiguy gmail.com> writes:
On Thursday, 13 November 2025 at 19:56:50 UTC, Atila Neves wrote:
 Does anyone have a working configuration for running CI on 
 Github on MacOS? I just tried macos-15 and macos-15-intel and 
 both of them have bizarre failures.
Use dmd master instead. example: https://github.com/schveiguy/jsoniopipe/blob/2e93f738d9fd61f535c4da502141467ce9ed3cec/.github/workflows/dub.yml#L20 -Steve
Nov 13
prev sibling next sibling parent Guillaume Piolat <first.nam_e gmail.com> writes:
On Thursday, 13 November 2025 at 19:56:50 UTC, Atila Neves wrote:
 Does anyone have a working configuration for running CI on 
 Github on MacOS? I just tried macos-15 and macos-15-intel and 
 both of them have bizarre failures.
I use macOS-latest: https://github.com/AuburnSounds/intel-intrinsics/blob/master/.github/workflows/x86_64.yml
Nov 14
prev sibling parent Dukc <ajieskola gmail.com> writes:
On Thursday, 13 November 2025 at 19:56:50 UTC, Atila Neves wrote:
 Does anyone have a working configuration for running CI on 
 Github on MacOS? I just tried macos-15 and macos-15-intel and 
 both of them have bizarre failures.
[Dlang.nix](https://github.com/PetarKirov/dlang.nix) has one. Or had, at least... Petar had some strange failures for [the exact same build that did compile on olderr](https://github.com/PetarKirov/dlang.nix/pull/173#issu comment-3490813046) Macs. Check [this issue](https://github.com/dlang/dmd/issues/21126). I don't understand how it could be causing dlang.nix failures since we're supposed to be using a bootstrap compiler that isn't affected (ldc 1.25.0) but who knows. I don't think it's behind your problem as that particular issue causes crashes, not linking failures but again, who knows.
Nov 14