-
-
Notifications
You must be signed in to change notification settings - Fork 988
161 lines (136 loc) · 4 KB
/
ci-main.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
name: CI
on:
push:
branches: [ 1.14 ]
pull_request:
branches: [ 1.14 ]
workflow_dispatch:
jobs:
# run after all other jobs have completed to check overall build status
discord-notification:
runs-on: ubuntu-20.04
name: Discord Notification
needs: [ubuntu-1604-scons-gcc-release, ubuntu-1604-scons-clang-debug, ubuntu-1604-cmake-clang-debug, macos-master-release, macos-master-debug]
if: always()
steps:
- uses: technote-space/workflow-conclusion-action@v2
- uses: rjstone/discord-webhook-notify@v1
if: env.WORKFLOW_CONCLUSION == 'failure' && github.event_name == 'push'
with:
severity: error
webhookUrl: ${{ secrets.DISCORD_CI_WEBHOOK }}
description: |-
pusher: ${{ github.actor }}
commit: ${{ github.event.head_commit.message }}
commit url: ${{ github.event.head_commit.url }}
ubuntu-1604-scons-gcc-release:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Ubuntu 1604
run: |
export BRANCH=1.14
export IMAGE=1604
export NLS=false
export TOOL=scons
export CC=gcc
export CXX=g++
export CXX_STD=11
export CFG=release
export LTO=false
export CACHE_DIR=/home/wesnoth-travis/build
./.github/workflows/ci-scripts/ubuntu.sh
ubuntu-1604-scons-clang-debug:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Ubuntu 1604
run: |
export BRANCH=1.14
export IMAGE=1604
export NLS=false
export TOOL=scons
export CC=clang
export CXX=clang++
export CXX_STD=11
export CFG=debug
export LTO=false
export CACHE_DIR=/home/wesnoth-travis/build
./.github/workflows/ci-scripts/ubuntu.sh master
- name: Upload
uses: actions/upload-artifact@v2
with:
name: Ubuntu-Clang-Debug
path: |
~/build-cache/wesnoth
~/build-cache/wesnothd
ubuntu-1604-cmake-clang-debug:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Ubuntu 1604
run: |
export BRANCH=1.14
export IMAGE=1604
export NLS=false
export TOOL=cmake
export CC=clang
export CXX=clang++
export CXX_STD=11
export CFG=Debug
export LTO=false
export CACHE_DIR=/home/wesnoth-travis/build
./.github/workflows/ci-scripts/ubuntu.sh
translations:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Ubuntu 1604
run: |
export BRANCH=1.14
export IMAGE=1604
export NLS=only
export TOOL=cmake
export CC=clang
export CXX=clang++
export CXX_STD=11
export CFG=Debug
export LTO=false
export CACHE_DIR=/home/wesnoth-travis/build
./.github/workflows/ci-scripts/ubuntu.sh
macos-master-release:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: macOS Release
run: |
export CFG=Release
export CACHE_DIR=~/build-cache
./.github/workflows/ci-scripts/macos.sh
macos-master-debug:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: macOS Debug
run: |
export CFG=Debug
export CACHE_DIR=~/build-cache
./.github/workflows/ci-scripts/macos.sh
- name: Upload
uses: actions/upload-artifact@v2
with:
name: macOS-Debug
path: |
~/work/wesnoth/wesnoth/projectfiles/Xcode/Wesnoth_Debug.dmg