-
Notifications
You must be signed in to change notification settings - Fork 66
72 lines (60 loc) · 2.07 KB
/
d.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Run all D Tests
on: [push, pull_request]
jobs:
generated:
name: Make sure that the parser is generated from the grammar
strategy:
matrix:
os: [ubuntu-latest]
dc: [dmd-2.101.2] # Avoid https://dlang.org/changelog/2.102.0.html#build-cache
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: Run test
working-directory: ./pegged/dev
run: rdmd -I../.. -I../../examples/peggedgrammar/src -I../../examples/misc/src regenerate.d --validate
unittest:
name: Pegged unit tests
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
dc: [dmd-latest, ldc-latest, dmd-2.087.1, dmd-2.090.1, ldc-1.17.0, ldc-1.20.0]
exclude:
# dyld[2053]: missing symbol called
- { os: macOS-latest, dc: dmd-2.087.1 }
# ld: section __DATA/__thread_bss has type zero-fill but non-zero file offset
- { os: macOS-latest, dc: dmd-2.090.1 }
# needs -lowmem
- { os: windows-latest, dc: dmd-2.090.1 }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: Run tests
run: dub -q test
examples:
name: Examples unit tests
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
dc: [dmd-2.101.2] # Avoid https://dlang.org/changelog/2.102.0.html#build-cache
example: [arithmetic, c, csv, json, numbers, python, simple_arithmetic, strings, xml]
exclude:
# out of memory
- { example: python }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: Test example
run: dub test :${{ matrix.example }}