-
-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (46 loc) · 1.51 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: BUILD & TEST
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
dc: [ldc-latest, dmd-latest]
exclude:
- os: macos-14
dc: dmd-latest
- os: macos-13
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 test-01
run: dub run --root=tests/test-01
- name: Run test-02
run: dub run --root=tests/test-02
- name: Run test-03
run: dub run --root=tests/test-03
- name: Build examples
run: dub build --build=release --root=examples/01_hello_world/
&& dub build --root=examples/02_priority/
&& dub build --root=examples/03_form/
&& dub build --root=examples/04_html_dom/
&& dub build --root=examples/05_websocket_echo/
&& dub build --root=examples/06_websocket_noise_stream/
&& dub build --root=examples/07_websocket_callback/
&& dub build --root=examples/08_cmdline_args/