-
-
Notifications
You must be signed in to change notification settings - Fork 6
81 lines (66 loc) · 1.81 KB
/
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
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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
# - arch: x86
# os: windows-latest
# dub_arch: x86_mscoff
# dub_compiler: ldc-latest
# - arch: x64
# os: windows-latest
# dub_arch: x86_64
# dub_compiler: ldc-latest
# - arch: x64
# os: ubuntu-20.04
# dub_arch: x86_64
# dub_compiler: ldc-latest
# bug 23837
# - arch: x86
# os: windows-latest
# dub_arch: x86_mscoff
# dub_compiler: dmd-latest
- arch: x64
os: windows-latest
dub_arch: x86_64
dub_compiler: dmd-latest
- arch: x64
os: ubuntu-20.04
dub_arch: x86_64
dub_compiler: dmd-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dub_compiler }}
- run: |
dub test -b unittest -a ${{ matrix.dub_arch }}
release:
runs-on: ubuntu-20.04
needs: [ build ]
if: "!contains(github.event.head_commit.message, 'WIP')"
steps:
- uses: actions/checkout@v2
- uses: anothrNick/[email protected]
id: create_tag
env:
WITH_V: true
DEFAULT_BUMP: patch
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.create_tag.outputs.new_tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}