@@ -14,92 +14,6 @@ concurrency:
14
14
cancel-in-progress : ${{ github.event_name == 'pull_request' }}
15
15
16
16
jobs :
17
- # TODO: cache building yarn --production
18
- # possibly 2m30s of savings(?)
19
- # this requires refactoring our release scripts
20
- package-linux-amd64 :
21
- name : x86-64 Linux build
22
- runs-on : ubuntu-latest
23
- timeout-minutes : 15
24
- container : " centos:7"
25
- env :
26
- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
27
-
28
- steps :
29
- - name : Checkout repo
30
- uses : actions/checkout@v3
31
-
32
- - name : Install Node.js v16
33
- uses : actions/setup-node@v3
34
- with :
35
- node-version : " 16"
36
-
37
- - name : Install development tools
38
- run : |
39
- yum install -y epel-release centos-release-scl make
40
- yum install -y devtoolset-9-{make,gcc,gcc-c++} jq rsync python3
41
-
42
- - name : Install nfpm and envsubst
43
- run : |
44
- mkdir -p ~/.local/bin
45
- curl -sSfL https://github.com/goreleaser/nfpm/releases/download/v2.3.1/nfpm_2.3.1_`uname -s`_`uname -m`.tar.gz | tar -C ~/.local/bin -zxv nfpm
46
- curl -sSfL https://github.com/a8m/envsubst/releases/download/v1.1.0/envsubst-`uname -s`-`uname -m` -o envsubst
47
- chmod +x envsubst
48
- mv envsubst ~/.local/bin
49
- echo "$HOME/.local/bin" >> $GITHUB_PATH
50
-
51
- - name : Install yarn
52
- run : npm install -g yarn
53
-
54
- - name : Download artifacts
55
- uses : dawidd6/action-download-artifact@v2
56
- id : download
57
- with :
58
- branch : ${{ github.ref }}
59
- workflow : build.yaml
60
- workflow_conclusion : completed
61
- check_artifacts : true
62
- name : npm-package
63
-
64
- - name : Decompress npm package
65
- run : tar -xzf package.tar.gz
66
-
67
- # NOTE: && here is deliberate - GitHub puts each line in its own `.sh`
68
- # file when running inside a docker container.
69
- - name : Build standalone release
70
- run : source scl_source enable devtoolset-9 && yarn release:standalone
71
-
72
- - name : Fetch dependencies from cache
73
- id : cache-node-modules
74
- uses : actions/cache@v3
75
- with :
76
- path : " **/node_modules"
77
- key : yarn-build-${{ hashFiles('**/yarn.lock') }}
78
- restore-keys : |
79
- yarn-build-
80
-
81
- - name : Install test dependencies
82
- if : steps.cache-node-modules.outputs.cache-hit != 'true'
83
- run : SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile
84
-
85
- - name : Run integration tests on standalone release
86
- run : yarn test:integration
87
-
88
- - name : Upload coverage report to Codecov
89
- uses : codecov/codecov-action@v3
90
- with :
91
- token : ${{ secrets.CODECOV_TOKEN }}
92
- if : success()
93
-
94
- - name : Build packages with nfpm
95
- run : yarn package
96
-
97
- - uses : softprops/action-gh-release@v1
98
- with :
99
- draft : true
100
- discussion_category_name : " 📣 Announcements"
101
- files : ./release-packages/*
102
-
103
17
# NOTE@oxy:
104
18
# We use Ubuntu 16.04 here, so that our build is more compatible
105
19
# with older libc versions. We used to (Q1'20) use CentOS 7 here,
128
42
include :
129
43
- prefix : aarch64-linux-gnu
130
44
arch : arm64
131
- - prefix : arm-linux-gnueabihf
132
- arch : armv7l
133
45
134
46
env :
135
47
AR : ${{ format('{0}-ar', matrix.prefix) }}
@@ -190,64 +102,4 @@ jobs:
190
102
discussion_category_name : " 📣 Announcements"
191
103
files : ./release-packages/*
192
104
193
- package-macos-amd64 :
194
- name : x86-64 macOS build
195
- runs-on : macos-latest
196
- timeout-minutes : 15
197
- steps :
198
- - name : Checkout repo
199
- uses : actions/checkout@v3
200
-
201
- - name : Install Node.js v16
202
- uses : actions/setup-node@v3
203
- with :
204
- node-version : " 16"
205
-
206
- - name : Install nfpm
207
- run : |
208
- mkdir -p ~/.local/bin
209
- curl -sSfL https://github.com/goreleaser/nfpm/releases/download/v2.3.1/nfpm_2.3.1_`uname -s`_`uname -m`.tar.gz | tar -C ~/.local/bin -zxv nfpm
210
- echo "$HOME/.local/bin" >> $GITHUB_PATH
211
-
212
- - name : Download artifacts
213
- uses : dawidd6/action-download-artifact@v2
214
- id : download
215
- with :
216
- branch : ${{ github.ref }}
217
- workflow : build.yaml
218
- workflow_conclusion : completed
219
- check_artifacts : true
220
- name : npm-package
221
-
222
- - name : Decompress npm package
223
- run : tar -xzf package.tar.gz
224
-
225
- - name : Build standalone release
226
- run : yarn release:standalone
227
-
228
- - name : Fetch dependencies from cache
229
- id : cache-node-modules
230
- uses : actions/cache@v3
231
- with :
232
- path : " **/node_modules"
233
- key : yarn-build-${{ hashFiles('**/yarn.lock') }}
234
- restore-keys : |
235
- yarn-build-
236
-
237
- - name : Install test dependencies
238
- if : steps.cache-node-modules.outputs.cache-hit != 'true'
239
- run : SKIP_SUBMODULE_DEPS=1 yarn install
240
-
241
- - name : Run native module tests on standalone release
242
- run : yarn test:native
243
-
244
- - name : Build packages with nfpm
245
- run : yarn package
246
-
247
- - uses : softprops/action-gh-release@v1
248
- with :
249
- draft : true
250
- discussion_category_name : " 📣 Announcements"
251
- files : ./release-packages/*
252
-
253
105
0 commit comments