ldc icon indicating copy to clipboard operation
ldc copied to clipboard

Add musl libc CI using Alpine Linux container on Ubuntu GHA

Open JohanEngelen opened this issue 1 year ago • 4 comments

Separate PRs to enable musl:

  • [x] #4639
  • [x] #4648
  • [x] #4645

Upstream PRs:

  • [x] https://github.com/dlang/dmd/pull/16513
  • [x] https://github.com/dlang/dmd/pull/16507
  • [x] https://github.com/dlang/dmd/pull/16458

JohanEngelen avatar May 07 '24 20:05 JohanEngelen

Is there a good way to disable all gdb-related tests? (the gdb version on Alpine is too new and there are no alpine packages for older gdb versions)

JohanEngelen avatar May 07 '24 20:05 JohanEngelen

Yeah, we have this which should take care of most dmd-testsuite failures: https://github.com/ldc-developers/ldc/blob/40ad5f7583fe90a85fd675bfc0cfc287d565c94a/tests/dmd/tools/d_do_test.d#L1702-L1709

kinke avatar May 08 '24 10:05 kinke

The tester on Alpine Linux with musl is green now :))

JohanEngelen avatar May 19 '24 14:05 JohanEngelen

Currently it doesn't find any compiler-rt libs, so LDC_INSTALL_LLVM_RUNTIME_LIBS_OS might need tweaking.

kinke avatar May 19 '24 16:05 kinke

Green again!

JohanEngelen avatar Jun 26 '24 06:06 JohanEngelen

Any objections before merging?

With this in place, in follow up I intend to work towards statically linked build and uploading a release to GH.

I'll upstream the druntime fix. https://github.com/dlang/dmd/pull/16627

JohanEngelen avatar Jun 26 '24 18:06 JohanEngelen