Skip to content

Commit 9971927

Browse files
authored
GHA main: Add Alpine Linux job, to CI-test musl libc (#10632)
1 parent 99602a5 commit 9971927

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
- job_name: Ubuntu 22.04 x86
2222
os: ubuntu-22.04
2323
model: 32
24+
- job_name: Alpine 3.21 x64
25+
os: ubuntu-latest
26+
container_image: alpine:3.21
27+
host_dmd: ldmd2
2428
# macOS
2529
- job_name: macOS 13 x64
2630
os: macos-13
@@ -32,12 +36,13 @@ jobs:
3236
model: 32
3337
name: ${{ matrix.job_name }}
3438
runs-on: ${{ matrix.os }}
39+
container: ${{ matrix.container_image }}
3540
timeout-minutes: 40
3641
env:
3742
# for ci/run.sh:
3843
OS_NAME: ${{ startsWith(matrix.os, 'ubuntu') && 'linux' || (startsWith(matrix.os, 'macos') && 'osx' || (startsWith(matrix.os, 'windows') && 'windows' || '')) }}
3944
MODEL: ${{ matrix.model || '64' }}
40-
HOST_DMD: dmd
45+
HOST_DMD: ${{ matrix.host_dmd || 'dmd' }}
4146
# N is set dynamically below
4247
FULL_BUILD: false
4348
# work around https://issues.dlang.org/show_bug.cgi?id=23517
@@ -46,6 +51,10 @@ jobs:
4651
run:
4752
shell: bash
4853
steps:
54+
- name: 'Alpine container: Pre-install bash, git and sudo'
55+
if: startsWith(matrix.container_image, 'alpine')
56+
shell: sh
57+
run: apk add bash git sudo
4958
- uses: actions/checkout@v4
5059
with:
5160
fetch-depth: 50

0 commit comments

Comments
 (0)