Skip to content

Commit 829e771

Browse files
the-horothewilsonator
authored andcommitted
CI: bump setup-dlang to v2
Signed-off-by: Andrei Horodniceanu <[email protected]>
1 parent e38f93a commit 829e771

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,19 @@ jobs:
2121
runs-on: ${{ matrix.os }}
2222
timeout-minutes: 10
2323
env:
24-
DMD: ${{ startsWith(matrix.dc, 'ldc') && 'ldmd2' || 'dmd' }}
2524
N: ${{ startsWith(matrix.os, 'macos') && '3' || '2' }}
2625
steps:
2726
- uses: actions/checkout@v4
2827
- name: Install D compiler
29-
uses: dlang-community/setup-dlang@v1.3.0
28+
uses: dlang-community/setup-dlang@v2
3029
with:
3130
compiler: ${{ matrix.dc }}
31+
# rdmd_test.d needs this
32+
- name: Set DMD to its basename without extension
33+
run: |
34+
val=$(basename "${DMD}")
35+
val=${val%.*}
36+
tee -a ${GITHUB_ENV} <<<"DMD=${val}"
3237
- name: Build
3338
run: make -j$N DMD=$DMD
3439
- name: Test

0 commit comments

Comments
 (0)