Skip to content

Commit 5779955

Browse files
Update release.yaml
1 parent 05b8e55 commit 5779955

File tree

1 file changed

+29
-11
lines changed

1 file changed

+29
-11
lines changed

.github/workflows/release.yaml

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,36 @@ jobs:
7272
test/package-lock.json
7373
7474
- name: Install cross-compiler and system dependencies
75-
run:
76-
sed -i 's/deb\.debian\.org/archive.debian.org/g' /etc/apt/sources.list
77-
dpkg --add-architecture $TARGET_ARCH
78-
apt update && apt install -y --no-install-recommends \
79-
crossbuild-essential-$TARGET_ARCH \
80-
libx11-dev:$TARGET_ARCH \
81-
libx11-xcb-dev:$TARGET_ARCH \
82-
libxkbfile-dev:$TARGET_ARCH \
83-
libsecret-1-dev:$TARGET_ARCH \
84-
libkrb5-dev:$TARGET_ARCH \
75+
run: |
76+
set -e
77+
78+
# Ensure TARGET_ARCH is set
79+
: "${TARGET_ARCH:?Environment variable TARGET_ARCH must be set}"
80+
81+
# Update sources to use archive.debian.org
82+
sed -i 's|http://deb\.debian\.org|http://archive.debian.org|g' /etc/apt/sources.list
83+
sed -i 's|http://security\.debian\.org|http://archive.debian.org|g' /etc/apt/sources.list
84+
85+
# Disable "valid-until" check for expired Release files
86+
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
87+
88+
# Add cross-compilation architecture
89+
dpkg --add-architecture "$TARGET_ARCH"
90+
91+
# Update and install packages
92+
apt-get update
93+
apt-get install -y --no-install-recommends \
94+
crossbuild-essential-"$TARGET_ARCH" \
95+
libx11-dev:"$TARGET_ARCH" \
96+
libx11-xcb-dev:"$TARGET_ARCH" \
97+
libxkbfile-dev:"$TARGET_ARCH" \
98+
libsecret-1-dev:"$TARGET_ARCH" \
99+
libkrb5-dev:"$TARGET_ARCH" \
85100
ca-certificates \
86-
curl wget rsync gettext-base
101+
curl \
102+
wget \
103+
rsync \
104+
gettext-base
87105

88106
- run: SKIP_SUBMODULE_DEPS=1 npm ci
89107

0 commit comments

Comments
 (0)