Skip to content

Commit 9177216

Browse files
Update build-rockchip-driver-debs.yml
1 parent f5b61f5 commit 9177216

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/build-rockchip-driver-debs.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
targets:
77
description: Comma-separated OpenHD-ImageBuilder targets
88
required: false
9-
default: radxa-rock3a_base,rock5a_base,rock5b_base,radxa-cm3,radxa-zero3w_base,radxa-zero3w-lite_base,core3566
9+
default: radxa-rock3a_base,rock5a_base,rock5b_base
1010
push:
1111
paths:
1212
- ".github/workflows/build-rockchip-driver-debs.yml"
@@ -25,7 +25,7 @@ jobs:
2525
- id: targets
2626
shell: bash
2727
run: |
28-
targets="${{ github.event.inputs.targets || 'radxa-rock3a_base,rock5a_base,rock5b_base,radxa-cm3,radxa-zero3w_base,radxa-zero3w-lite_base,core3566' }}"
28+
targets="${{ github.event.inputs.targets || 'radxa-rock3a_base,rock5a_base,rock5b_base' }}"
2929
json="$(printf '%s' "$targets" | jq -Rc 'split(",") | map(gsub("^\\s+|\\s+$"; "")) | map(select(length > 0))')"
3030
echo "targets=${json}" >> "$GITHUB_OUTPUT"
3131
@@ -204,17 +204,26 @@ jobs:
204204
-o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 update
205205
}
206206
207+
disable_stale_apt_sources() {
208+
find /etc/apt -type f \( -name '*.list' -o -name '*.sources' \) -print0 \
209+
| xargs -0 -r sed -i -E \
210+
-e '/dl\.cloudsmith\.io\/public\/openhd\/release/s/^/# disabled by driver CI: /' \
211+
-e '/bullseye-security/s/^[[:space:]]*deb/# disabled by driver CI: &/' \
212+
-e '/bullseye-backports/s/^[[:space:]]*deb/# disabled by driver CI: &/'
213+
}
214+
207215
if [[ "${DISTRO}" == "bullseye" ]]; then
208216
sed -i -E \
209217
-e 's|https?://deb\.debian\.org/debian|http://archive.debian.org/debian|g' \
210-
-e '/bullseye-backports/s/^[[:space:]]*deb/# &/' \
218+
-e 's|https?://security\.debian\.org/debian-security|http://archive.debian.org/debian-security|g' \
211219
/etc/apt/sources.list 2>/dev/null || true
212220
find /etc/apt/sources.list.d -name '*.list' -print0 2>/dev/null \
213221
| xargs -0 -r sed -i -E \
214222
-e 's|https?://deb\.debian\.org/debian|http://archive.debian.org/debian|g' \
215-
-e '/bullseye-backports/s/^[[:space:]]*deb/# &/' || true
223+
-e 's|https?://security\.debian\.org/debian-security|http://archive.debian.org/debian-security|g' || true
216224
fi
217225
226+
disable_stale_apt_sources
218227
apt_update_tolerant
219228
apt-get install -y --no-install-recommends build-essential make gcc bc bison flex kmod dkms ca-certificates
220229
curl -1sLf "https://dl.cloudsmith.io/public/openhd/dev-release/setup.deb.sh" | bash || true

0 commit comments

Comments
 (0)