-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (46 loc) · 1.25 KB
/
build.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
name: Build
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
schedule:
- cron: '0 0 * * 0'
jobs:
matrix-build:
name: Matrix Build
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
dc: [dmd-latest, ldc-latest]
include:
- { os: macOS-latest, dc: ldc-latest }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: Run tests
run: dub test --build=unittest-cov --verbose
- name: Run tests (dip1000)
env:
DFLAGS: -dip1000
run: dub test --build=unittest-cov --verbose
- name: Run tests (in)
env:
DFLAGS: -preview=in
run: dub test --build=unittest-cov --verbose
- name: Run tests (dip1000 & in)
env:
DFLAGS: -dip1000 -preview=in
run: dub test --build=unittest-cov --verbose
- name: Build examples
run: dub --root examples build --parallel --verbose
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}