forked from tindy2013/stairspeedtest-reborn
-
Notifications
You must be signed in to change notification settings - Fork 0
141 lines (135 loc) · 5.01 KB
/
build.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
name: GitHub CI
on: [push]
jobs:
linux32_build:
name: Linux x86 Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: |
docker run -v $GITHUB_WORKSPACE:/root/workdir -e TRAVIS_BRANCH=action -e TRAVIS_TAG=action multiarch/alpine:x86-latest-stable /bin/sh -c "apk add bash git && cd /root/workdir && bash scripts/build.alpine.release.sh"
- name: Upload
uses: actions/upload-artifact@v2
with:
name: stairspeedtest_reborn_linux32
path: stairspeedtest/
linux64_build:
name: Linux x86_64 Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: |
docker run -v $GITHUB_WORKSPACE:/root/workdir -e TRAVIS_BRANCH=action -e TRAVIS_TAG=action multiarch/alpine:amd64-latest-stable /bin/sh -c "apk add bash git && cd /root/workdir && bash scripts/build.alpine.release.sh"
- name: Upload
uses: actions/upload-artifact@v2
with:
name: stairspeedtest_reborn_linux64
path: stairspeedtest/
macos_build:
name: macOS Build
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: |
bash scripts/build.macos.release.sh
bash scripts/build.macos.clients.sh
mv base stairspeedtest
- name: Upload
uses: actions/upload-artifact@v2
with:
name: stairspeedtest_reborn_darwin64
path: stairspeedtest/
windows64_build:
name: Windows x86_64 Build
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
update: true
install: base-devel git mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-libevent mingw-w64-x86_64-pcre2 mingw-w64-x86_64-freetype mingw-w64-x86_64-libpng mingw-w64-x86_64-bzip2 mingw-w64-x86_64-openssl mingw-w64-x86_64-mbedtls mingw-w64-x86_64-libsodium mingw-w64-x86_64-c-ares mingw-w64-x86_64-boost mingw-w64-x86_64-libmariadbclient unzip p7zip
- name: Cache built dependencies
uses: actions/cache@v2
env:
cache-name: cache-maindeps-64
with:
path: ~/maindeps
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/FETCH_HEAD') }} # key from git repos
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Cache built clients
uses: actions/cache@v2
env:
cache-name: cache-clients-64
with:
path: ~/clients
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/FETCH_HEAD') }} # key from git repos
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Build dependencies and clients
run: |
bash scripts/build.windows.maindeps.sh
bash scripts/build.windows.clients.sh
- name: Build main program
run: |
bash scripts/build.windows.release.sh
mv $USERPROFILE/clients/built/websocketd.exe base/tools/gui/
mv $USERPROFILE/clients/built base/tools/clients
mv base stairspeedtest
- name: Upload
uses: actions/upload-artifact@v1
with:
name: stairspeedtest_reborn_win64
path: stairspeedtest/
windows32_build:
name: Windows x86 Build
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
update: true
install: base-devel git mingw-w64-i686-gcc mingw-w64-i686-cmake mingw-w64-i686-libevent mingw-w64-i686-pcre2 mingw-w64-i686-freetype mingw-w64-i686-libpng mingw-w64-i686-bzip2 mingw-w64-i686-openssl mingw-w64-i686-mbedtls mingw-w64-i686-libsodium mingw-w64-i686-c-ares mingw-w64-i686-boost mingw-w64-i686-libmariadbclient unzip p7zip
msystem: MINGW32
- name: Cache built dependencies
uses: actions/cache@v2
env:
cache-name: cache-maindeps-32
with:
path: ~/maindeps
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/FETCH_HEAD') }} # key from git repos
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Cache built clients
uses: actions/cache@v2
env:
cache-name: cache-clients-32
with:
path: ~/clients
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/FETCH_HEAD') }} # key from git repos
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Build dependencies and clients
run: |
bash scripts/build.windows.maindeps.sh
bash scripts/build.windows.clients.sh
- name: Build main program
run: |
bash scripts/build.windows.release.sh
mv $USERPROFILE/clients/built/websocketd.exe base/tools/gui/
mv $USERPROFILE/clients/built base/tools/clients
mv base stairspeedtest
- name: Upload
uses: actions/upload-artifact@v1
with:
name: stairspeedtest_reborn_win32
path: stairspeedtest/