-
Notifications
You must be signed in to change notification settings - Fork 15
39 lines (32 loc) · 832 Bytes
/
ci.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
name: CI
on: [push, pull_request]
jobs:
test:
name: Dub Test
strategy:
matrix:
os:
- ubuntu-22.04
- windows-2019
- macos-11
dc:
- dmd-2.108.0
- dmd-2.100.0
- ldc-1.37.0
- ldc-1.28.0
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install D compiler
uses: dlang-community/[email protected]
with:
compiler: ${{ matrix.dc }}
- name: Run tests on Posix
if: runner.os != 'Windows'
run: dub test -q --build=unittest-cov # -c asan
- name: Run tests on Windows
if: runner.os == 'Windows'
run: dub test -q --build=unittest-cov
- name: Build binary
run: dub build -q
- uses: codecov/codecov-action@v3