forked from simendsjo/mysqln
-
Notifications
You must be signed in to change notification settings - Fork 28
103 lines (90 loc) · 2.91 KB
/
dub.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: Builds
# Overall MySQL Native should work on the last 10 minor compiler releases (same as Vibe.d).
# For simplicity and speed of the CI, the latest versions of dmd and ldc must are tested on
# all platforms (Windows, Linux, and Mac) with older compilers only being tested on Windows/Linux.
# The integration testing (via examples) is done on Linux against Mysql 5.7
on:
schedule:
- cron: '30 7 1 * *'
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened, edited]
workflow_dispatch:
jobs:
build:
name: ${{ matrix.compiler }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
compiler:
- dmd-latest
- ldc-latest
- dmd-2.101.2
- dmd-2.098.1
- ldc-1.31.0 # eq to dmd v2.101.2
- ldc-1.28.1 # eq to dmd v2.098.1
steps:
- uses: actions/checkout@v3
- name: Install D ${{ matrix.compiler }}
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.compiler }}
- name: Upgrade dub dependencies
uses: WebFreak001/[email protected]
- name: Build Library
run: dub build --build=release --config=library
# cache
- uses: WebFreak001/[email protected]
if: startsWith(matrix.os, 'windows')
with: { store: true }
# Older compiler versions
build-older:
name: ${{ matrix.compiler }} on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ] # don't bother with macos-latest
compiler:
- dmd-2.097.2
- dmd-2.095.1
- dmd-2.094.2
- dmd-2.093.1
- dmd-2.092.1
- dmd-2.091.1
- dmd-2.090.1
- dmd-2.089.1
- dmd-2.088.1
- dmd-2.087.1
- dmd-2.086.1
- dmd-2.085.1
# These compilers do not work with dub for downloading taggedalgebraic
#- dmd-2.084.1
#- dmd-2.083.1
#- dmd-2.082.1
#- dmd-2.081.2
#- dmd-2.080.1
- ldc-1.27.1 # eq to dmd v2.097.2
- ldc-1.26.0 # eq to dmd v2.096.1
- ldc-1.25.1 # eq to dmd v2.095.1
- ldc-1.24.0 # eq to dmd v2.094.1
- ldc-1.23.0 # eq to dmd v2.093.1
- ldc-1.22.0 # eq to dmd v2.092.1
- ldc-1.19.0 # eq to dmd v2.089.1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install D ${{ matrix.compiler }}
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.compiler }}
- name: Upgrade dub dependencies
uses: WebFreak001/[email protected]
- name: Build Library
run: dub build --build=release --config=library
# cache
- uses: WebFreak001/[email protected]
with: { store: true }