Skip to content

Commit ffb2683

Browse files
committed
CI: test dmd and ldc2 on ubuntu macos and windows
Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
1 parent bd89fc0 commit ffb2683

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

.github/workflows/d.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,24 @@ permissions:
1515

1616
jobs:
1717
build:
18-
19-
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
os: [ubuntu-latest, macos-latest, windows-latest]
21+
dc: [dmd, ldc]
22+
runs-on: ${{ matrix.os }}
2023

2124
steps:
22-
- uses: actions/checkout@v4
23-
- uses: dlang-community/setup-dlang@v2
25+
- uses: actions/checkout@v4
26+
- uses: dlang-community/setup-dlang@v2
27+
with: ${{ matrix.dc }}
2428

25-
- name: 'Build & Test'
26-
run: |
27-
# Build the project, with its main file included, without unittests
28-
dub build
29-
# Build and run tests, as defined by `unittest` configuration
30-
# In this mode, `mainSourceFile` is excluded and `version (unittest)` are included
31-
# See https://dub.pm/package-format-json.html#configurations
32-
dub test
33-
# Run tests
34-
cd tests && rdmd test
29+
- name: 'Build & Test'
30+
run: |
31+
# Build the project, with its main file included, without unittests
32+
dub build
33+
# Build and run tests, as defined by `unittest` configuration
34+
# In this mode, `mainSourceFile` is excluded and `version (unittest)` are included
35+
# See https://dub.pm/package-format-json.html#configurations
36+
dub test
37+
# Run tests
38+
cd tests && rdmd test

0 commit comments

Comments
 (0)