File tree Expand file tree Collapse file tree 4 files changed +33
-3
lines changed Expand file tree Collapse file tree 4 files changed +33
-3
lines changed Original file line number Diff line number Diff line change 11
11
build :
12
12
strategy :
13
13
matrix :
14
- image : [centos7 , linux-arm64, alpine]
14
+ image : [almalinux-devtoolset11 , linux-arm64, alpine]
15
15
name : Building ${{ matrix.image }} binaries
16
16
runs-on : ubuntu-latest
17
17
Original file line number Diff line number Diff line change @@ -19,13 +19,14 @@ jobs:
19
19
- alpine
20
20
# - android-armv7
21
21
# - android-arm64
22
- - centos7
22
+ # - centos7
23
23
# - linux-armv6
24
24
# - linux-armv7
25
25
# - linux-armv7l-musl
26
26
- linux-arm64
27
27
# - linux-arm64-lts
28
28
# - linux-arm64-musl
29
+ - almalinux-devtoolset11
29
30
steps :
30
31
- name : Checkout
31
32
uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -16,13 +16,14 @@ jobs:
16
16
- alpine
17
17
# - android-armv7
18
18
# - android-arm64
19
- - centos7
19
+ # - centos7
20
20
# - linux-armv6
21
21
# - linux-armv7
22
22
# - linux-armv7l-musl
23
23
- linux-arm64
24
24
# - linux-arm64-lts
25
25
# - linux-arm64-musl
26
+ - almalinux-devtoolset11
26
27
steps :
27
28
- name : Checkout
28
29
uses : actions/checkout@v4
Original file line number Diff line number Diff line change
1
+ FROM almalinux:8-minimal
2
+
3
+ USER 0
4
+
5
+ # Need shadow-utils for groupadd and useradd
6
+ RUN curl -fsSL https://rpm.nodesource.com/setup_22.x | bash - && \
7
+ microdnf install -y shadow-utils make nodejs python3.11 gcc-toolset-11 git && \
8
+ ln -s python3.11 /usr/bin/python && \
9
+ ln -sf python3.11 /usr/bin/python3 && \
10
+ microdnf clean all && \
11
+ rm -rf /var/cache/yum && \
12
+ groupadd -g 1000 node && useradd -g 1000 -u 1000 -m node && \
13
+ groupadd -g 2000 travis && useradd -g 2000 -u 2000 -m travis && \
14
+ npm -v && \
15
+ python --version
16
+
17
+ USER node
18
+ ENV HOME=/home/node
19
+
20
+ # Add gcc to PATH as alternative to "source scl_source enable gcc-toolset-11"
21
+ ENV PATH=/opt/rh/gcc-toolset-11/root/usr/bin:$PATH
22
+
23
+ # Disable npm update check
24
+ ENV NO_UPDATE_NOTIFIER=true
25
+ ENV npm_config_update_notifier=false
26
+
27
+ WORKDIR /repo
28
+ CMD ["scripts/build-generic.sh" , "almalinux-devtoolset11" ]
You can’t perform that action at this time.
0 commit comments