-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (36 loc) · 983 Bytes
/
d.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Run all tests
on: [push]
jobs:
test:
name: DUB tests
strategy:
matrix:
#os: [ubuntu-latest, windows-latest, macOS-latest, macos-12]
dc: [dmd, ldc, ldc-1.28.1]
#dub: [dub, redub]
os: [ubuntu-latest, windows-latest] # DEBUG
dub: [dub] # DEBUG
exclude:
- { os: macos-latest, dc: dmd }
- { os: macos-12, dc: dmd }
runs-on: ${{ matrix.os }}
env:
DUB: dub
steps:
- uses: actions/checkout@v4
- name: Install D compiler
uses: dlang-community/setup-dlang@v2
with:
compiler: ${{ matrix.dc }}
- name: Install Redub
if: matrix.dub == 'redub'
shell: bash
run: |
dub fetch redub
echo "DUB=dub run redub" >> "$GITHUB_ENV"
- name: Run tests
shell: bash
run: $DUB test
- name: Compile tour
shell: bash
run: $DUB build :tour -v