@@ -72,18 +72,36 @@ jobs:
72
72
test/package-lock.json
73
73
74
74
- 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" \
85
100
ca-certificates \
86
- curl wget rsync gettext-base
101
+ curl \
102
+ wget \
103
+ rsync \
104
+ gettext-base
87
105
88
106
- run : SKIP_SUBMODULE_DEPS=1 npm ci
89
107
0 commit comments