Skip to content

Commit ac47838

Browse files
perf: 使用 snapshot 源
1 parent 4d2ec1a commit ac47838

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757

5858
debian-13-loongarch64-cpu-cross:
5959
runs-on: ubuntu-latest
60-
container: debian:trixie
60+
container: debian@sha256:653dfb9f86c3782e8369d5f7d29bb8faba1f4bff9025db46e807fa4c22903671
6161
needs: check
6262
if: needs.check.outputs.APP_BUILD == '1'
6363
env:
@@ -70,13 +70,24 @@ jobs:
7070
ref: ${{ env.APP_VERSION }}
7171
- name: Setup LoongArch
7272
run: |
73+
rm -f /etc/apt/sources.list.d/*
74+
cat << EOF | tee /etc/apt/sources.list.d/debian-ports.list
75+
deb http://snapshot.debian.org/archive/debian/20250515T202920Z/ trixie main
76+
EOF
77+
( echo 'quiet "true";'; \
78+
echo 'APT::Get::Assume-Yes "true";'; \
79+
echo 'APT::Install-Recommends "false";'; \
80+
echo 'Acquire::Check-Valid-Until "false";'; \
81+
echo 'Acquire::Retries "5";'; \
82+
) > /etc/apt/apt.conf.d/99snapshot-repos
83+
7384
apt-get update
7485
apt-get install -y ca-certificates debian-ports-archive-keyring git zip
7586
dpkg --add-architecture loong64
7687
7788
# Add arch-specific repositories for non-amd64 architectures
7889
cat << EOF | tee /etc/apt/sources.list.d/loong64-ports.list
79-
deb [arch=loong64] http://deb.debian.org/debian-ports sid main
90+
deb [arch=loong64] http://snapshot.debian.org/archive/debian-ports/20250515T194251Z/ sid main
8091
EOF
8192
8293
apt-get update || true ;# Prevent failure due to missing URLs.
@@ -120,7 +131,7 @@ jobs:
120131

121132
debian-13-loongarch64-vulkan-cross:
122133
runs-on: ubuntu-latest
123-
container: debian:trixie
134+
container: debian@sha256:653dfb9f86c3782e8369d5f7d29bb8faba1f4bff9025db46e807fa4c22903671
124135
needs: check
125136
if: needs.check.outputs.APP_BUILD == '1'
126137
env:
@@ -133,13 +144,24 @@ jobs:
133144
ref: ${{ env.APP_VERSION }}
134145
- name: Setup LoongArch
135146
run: |
147+
rm -f /etc/apt/sources.list.d/*
148+
cat << EOF | tee /etc/apt/sources.list.d/debian-ports.list
149+
deb http://snapshot.debian.org/archive/debian/20250515T202920Z/ trixie main
150+
EOF
151+
( echo 'quiet "true";'; \
152+
echo 'APT::Get::Assume-Yes "true";'; \
153+
echo 'APT::Install-Recommends "false";'; \
154+
echo 'Acquire::Check-Valid-Until "false";'; \
155+
echo 'Acquire::Retries "5";'; \
156+
) > /etc/apt/apt.conf.d/99snapshot-repos
157+
136158
apt-get update
137159
apt-get install -y ca-certificates debian-ports-archive-keyring git zip
138160
dpkg --add-architecture loong64
139161
140162
# Add arch-specific repositories for non-amd64 architectures
141163
cat << EOF | tee /etc/apt/sources.list.d/loong64-ports.list
142-
deb [arch=loong64] http://deb.debian.org/debian-ports sid main
164+
deb [arch=loong64] http://snapshot.debian.org/archive/debian-ports/20250515T194251Z/ sid main
143165
EOF
144166
145167
apt-get update || true ;# Prevent failure due to missing URLs.

0 commit comments

Comments
 (0)