27
27
runs-on : ubuntu-latest
28
28
timeout-minutes : 15
29
29
needs : npm-version
30
- container : " centos:7 "
30
+ container : " centos:8 "
31
31
env :
32
32
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
33
33
@@ -42,12 +42,10 @@ jobs:
42
42
43
43
- name : Install development tools
44
44
run : |
45
- yum install -y epel-release centos-release-scl make
46
- yum install -y devtoolset-9-{make,gcc,gcc-c++} jq rsync python3
47
- # for keytar
48
- yum install -y libsecret-devel
49
- # for kerberos
50
- yum install -y krb5-devel
45
+ cd /etc/yum.repos.d/
46
+ sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
47
+ sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
48
+ yum install -y gcc-c++ make jq rsync python3 libsecret-devel krb5-devel
51
49
52
50
- name : Install nfpm and envsubst
53
51
run : |
69
67
- name : Decompress npm package
70
68
run : tar -xzf package.tar.gz
71
69
72
- # NOTE: && here is deliberate - GitHub puts each line in its own `.sh`
73
- # file when running inside a docker container.
74
70
- name : Build standalone release
75
- run : source scl_source enable devtoolset-9 && npm run release:standalone
71
+ run : npm run release:standalone
76
72
77
73
- name : Install test dependencies
78
74
run : SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile
@@ -104,25 +100,7 @@ jobs:
104
100
discussion_category_name : " 📣 Announcements"
105
101
files : ./release-packages/*
106
102
107
- # NOTE@oxy:
108
- # We use Ubuntu 16.04 here, so that our build is more compatible
109
- # with older libc versions. We used to (Q1'20) use CentOS 7 here,
110
- # but it has a full update EOL of Q4'20 and a 'critical security'
111
- # update EOL of 2024. We're dropping full support a few years before
112
- # the final EOL, but I don't believe CentOS 7 has a large arm64 userbase.
113
- # It is not feasible to cross-compile with CentOS.
114
-
115
- # Cross-compile notes: To compile native dependencies for arm64,
116
- # we install the aarch64/armv7l cross toolchain and then set it as the default
117
- # compiler/linker/etc. with the AR/CC/CXX/LINK environment variables.
118
- # qemu-user-static on ubuntu-16.04 currently doesn't run Node correctly,
119
- # so we just build with "native"/x86_64 node, then download arm64/armv7l node
120
- # and then put it in our release. We can't smoke test the cross build this way,
121
- # but this means we don't need to maintain a self-hosted runner!
122
-
123
- # NOTE@jsjoeio:
124
- # We used to use 18.04 until GitHub browned it out on December 15, 2022
125
- # See here: https://github.com/actions/runner-images/issues/6002
103
+ # TODO: We should use the same CentOS image to cross-compile if possible?
126
104
package-linux-cross :
127
105
name : Linux cross-compile builds
128
106
runs-on : ubuntu-20.04
0 commit comments