Skip to content

Commit cb52ab3

Browse files
committed
CI: add gdc build configurations, without tests
Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
1 parent cd7a717 commit cb52ab3

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ jobs:
6767
- dmd-2.106.1
6868
- dmd-2.109.1
6969
include:
70+
- { os: ubuntu-24.04, dc: gdc-13 }
71+
- { os: ubuntu-24.04, dc: gdc-14 }
72+
7073
- { do_test: false }
7174
- { dc: dmd-latest, do_test: true }
7275
- { dc: ldc-latest, do_test: true }
@@ -103,8 +106,9 @@ jobs:
103106
uses: dlang-community/setup-dlang@v2
104107
with:
105108
compiler: ${{ matrix.dc }}
109+
dub: latest # gdc doesn't come with dub
106110

107-
- name: Set DC and DMD
111+
- name: Set environment variables
108112
shell: bash
109113
run: |
110114
for name in DC DMD; do
@@ -113,6 +117,12 @@ jobs:
113117
var=${var%.exe} # strip the extension
114118
tee -a ${GITHUB_ENV} <<<"${name}=${var}"
115119
done
120+
# Pass -Wno-error with gdc, note that DFLAGS in the
121+
# environment makes dub no longer pass -unittest on test
122+
# builds so make sure tests are NOT run.
123+
if [[ ${{ matrix.dc }} == gdc* ]]; then
124+
tee -a ${GITHUB_ENV} <<<"DFLAGS=-Wno-error"
125+
fi
116126
117127
# Checkout the repository
118128
- name: Checkout

0 commit comments

Comments
 (0)