File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,31 @@ jobs:
20
20
matrix :
21
21
os : [ubuntu-latest, macos-latest, windows-latest]
22
22
dc : [dmd, ldc]
23
+ include :
24
+ - { os: ubuntu-latest, dc: gdc-14 }
23
25
runs-on : ${{ matrix.os }}
24
26
25
27
steps :
26
28
- uses : actions/checkout@v4
27
29
- uses : dlang-community/setup-dlang@v2
28
30
with :
29
31
compiler : ${{ matrix.dc }}
32
+ dub : latest
33
+
34
+ - name : Setup gdc specific environment
35
+ if : ${{ startsWith(matrix.dc, 'gdc') }}
36
+ run : |
37
+ tee -a ${GITHUB_ENV} <<<"DC=${DMD}"
38
+ # Linking errors without -allinst
39
+ # No other easy way to pass this to dub, using DFLAGS in the
40
+ # environment disables unittests
41
+ cat <<-EOF | sudo tee -a /etc/dmd.conf
42
+ [Environment]
43
+ DFLAGS=-allinst
44
+ EOF
30
45
31
46
- name : ' Build & Test'
47
+ shell : bash
32
48
run : |
33
49
# Build the project, with its main file included, without unittests
34
50
dub build
37
53
# See https://dub.pm/package-format-json.html#configurations
38
54
dub test
39
55
# Run tests
40
- cd tests && rdmd test
56
+ cd tests && "${DMD}" -run test.d
You can’t perform that action at this time.
0 commit comments