Skip to content

Commit b064580

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

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
@@ -74,6 +74,9 @@ jobs:
7474
- { dc: ldc-master, do_test: true }
7575
# Test on ARM64
7676
- { os: macOS-14, dc: ldc-latest, do_test: true }
77+
# Tests fail for gdc currently
78+
- { os: ubuntu-24.04, dc: gdc-13, do_test: false }
79+
- { os: ubuntu-24.04, dc: gdc-14, do_test: false }
7780
exclude:
7881
# Error with those versions:
7982
# ld: multiple errors: symbol count from symbol table and dynamic symbol table differ in [.../dub.o]; address=0x0 points to section(2) with no content in '[...]/osx/lib/libphobos2.a[3177](config_a68_4c3.o)'
@@ -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)