Skip to content

Commit 638c2d4

Browse files
authored
Merge pull request #157 from crazy-max/os-update
ci: os update
2 parents 769f2b0 + f4f4003 commit 638c2d4

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
include:
38-
-
39-
image: alpine:3.15
40-
typ: alpine
41-
allow-failure: false
4238
-
4339
image: alpine:3.16
4440
typ: alpine
@@ -56,12 +52,12 @@ jobs:
5652
typ: alpine
5753
allow-failure: false
5854
-
59-
image: alpine:edge
55+
image: alpine:3.20
6056
typ: alpine
61-
allow-failure: true
57+
allow-failure: false
6258
-
63-
image: debian:buster-backports
64-
typ: debian
59+
image: alpine:edge
60+
typ: alpine
6561
allow-failure: true
6662
-
6763
image: debian:bullseye-backports
@@ -104,15 +100,19 @@ jobs:
104100
typ: rhel
105101
allow-failure: false
106102
-
107-
image: fedora:37
103+
image: fedora:38
108104
typ: rhel
109105
allow-failure: false
110106
-
111-
image: fedora:38
107+
image: fedora:39
112108
typ: rhel
113109
allow-failure: false
114110
-
115-
image: fedora:39
111+
image: fedora:40
112+
typ: rhel
113+
allow-failure: false
114+
-
115+
image: fedora:41
116116
typ: rhel
117117
allow-failure: false
118118
-

src/xx-apk

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ setup() {
4646

4747
cp /etc/apk/repositories "$apk_dir/"
4848

49-
# riscv only supported in edge atm
50-
if [ "$TARGETARCH" = "riscv64" ]; then
51-
echo "https://dl-cdn.alpinelinux.org/alpine/edge/main" >"$apk_dir/repositories"
52-
echo "https://dl-cdn.alpinelinux.org/alpine/edge/community" >>"$apk_dir/repositories"
49+
# riscv supported since alpine 3.20
50+
if [ "$TARGETARCH" = "riscv64" ] && ! supportRiscV; then
51+
echo "https://dl-cdn.alpinelinux.org/alpine/v3.20/main" >"$apk_dir/repositories"
52+
echo "https://dl-cdn.alpinelinux.org/alpine/v3.20/community" >>"$apk_dir/repositories"
5353
fi
5454
mkdir "$apk_dir/keys"
5555
mkdir "$apk_dir/protected_paths.d"
@@ -132,6 +132,10 @@ cmd() {
132132
fi
133133
}
134134

135+
supportRiscV() {
136+
versionGTE "$(xx-info os-version | cut -d'.' -f1-2)" "3.20"
137+
}
138+
135139
case "$1" in
136140
"setup")
137141
setup

0 commit comments

Comments
 (0)