-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (38 loc) · 895 Bytes
/
test.yml
File metadata and controls
41 lines (38 loc) · 895 Bytes
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
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
dc:
- dmd-latest
- dmd-2.101.2
- ldc-latest
- ldc-1.31.0
exclude:
# macOS requires DMD >= 2.107.1
- os: macOS-latest
dc: dmd-2.101.2
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install D compiler
uses: dlang-community/setup-dlang@v2
with:
compiler: ${{ matrix.dc }}
- name: Run tests
shell: bash
run: |
dub test --compiler=${DC}
dub test --compiler=${DC} --build=unittest-dip1000
if [ "$DC" = "dmd" ]; then ./test-betterc.sh; fi