-
Notifications
You must be signed in to change notification settings - Fork 3
88 lines (72 loc) · 2.31 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: D
on:
push:
branches-ignore:
- travis-*
- circleci-*
- appveyor-*
- dustmite-*
- gh-pages
- onlinetests
pull_request:
branches-ignore:
- travis-*
- circleci-*
- appveyor-*
- dustmite-*
- gh-pages
- onlinetests
jobs:
build:
name: 'Everything'
strategy:
matrix:
os: [ ubuntu-latest, macOS-latest, windows-latest ]
dc: [ dmd-latest, dmd-2.087.0, ldc-latest, ldc-1.25.0 ]
exclude:
- { os: macOS-latest, dc: dmd-2.087.0 }
runs-on: ${{ matrix.os }}
continue-on-error: false
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: 'Install D compiler'
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: 'Run tests unless Windows'
if: matrix.os != 'windows-latest'
run: dub test --arch=x86_64
- name: 'Build tests if Windows'
if: matrix.os == 'windows-latest'
run: dub build -c unittest --arch=x86_64
- name: 'Build: dev (debug)'
run: dub build -c dev -b debug --arch=x86_64
- name: 'Build: dev (plain)'
run: dub build -c dev -b plain --arch=x86_64
- name: 'Build: dev (release)'
run: dub build -c dev -b release --arch=x86_64
- name: 'Build: application (debug)'
run: dub build -b debug --arch=x86_64
- name: 'Build: application (plain)'
run: dub build -b plain --arch=x86_64
- name: 'Build: application (release)'
run: dub build -b release --arch=x86_64
- name: 'Generate documenation'
if: matrix.dc == 'dmd-latest' && matrix.os == 'ubuntu-latest' && success()
run: |
git clone https://github.com/zorael/dialect.git
git clone https://github.com/zorael/lu.git
dub fetch adrdox
dub run adrdox -- -ip --header-title="kameloso IRC bot" source dialect/source lu/source
cp -rv .circleci generated-docs
- name: 'Deploy documentation to GitHub Pages'
if: matrix.dc == 'dmd-latest' && matrix.os == 'ubuntu-latest' && success()
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
keep_history: false
allow_empty_commit: true
build_dir: generated-docs