Skip to content

Commit da315f4

Browse files
committed
Fixes docker builds
Signed-off-by: alexis-opolka <[email protected]>
1 parent 9e2298e commit da315f4

File tree

14 files changed

+43
-33
lines changed

14 files changed

+43
-33
lines changed

.github/actions/setup-rust/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ inputs:
77
required: true
88
target:
99
description: 'Target'
10-
required: true
10+
required: false
1111
components:
1212
description: 'Components'
13-
required: true
13+
required: false
1414

1515
runs:
1616
using: composite

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ name: CI
2121
env:
2222
CARGO_NET_RETRY: 3
2323
CARGO_HTTP_CHECK_REVOKE: false
24+
CROSS_IMAGE: ghcr.io/${{ github.repository_owner }}
2425

2526
jobs:
2627
shellcheck:
@@ -31,7 +32,9 @@ jobs:
3132
ref: ${{ inputs.checkout-ref }}
3233

3334
- name: Run ShellCheck
34-
uses: azohra/[email protected]
35+
uses: Azbagheri/shell-linter@latest
36+
with:
37+
exclude-paths: ".github/CODEOWNERS,LICENSE-APACHE,LICENSE-MIT"
3538

3639
cargo-deny:
3740
runs-on: ubuntu-latest
@@ -229,7 +232,7 @@ jobs:
229232
run: ./ci/test-cross-image.sh
230233
env:
231234
TARGET: 'aarch64-unknown-linux-gnu'
232-
IMAGE: 'ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main'
235+
IMAGE: 'ghcr.io/${{ github.repository_owner }}/aarch64-unknown-linux-gnu:main'
233236
shell: bash
234237

235238
- name: Login to GitHub Container Registry
@@ -342,7 +345,7 @@ jobs:
342345
- name: Run Docker-in-Docker Test
343346
env:
344347
TARGET: aarch64-unknown-linux-gnu
345-
IMAGE: 'ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main'
348+
IMAGE: 'ghcr.io/${{ github.repository_owner }}/aarch64-unknown-linux-gnu:main'
346349
run: ./ci/test-docker-in-docker.sh
347350
shell: bash
348351

docker/Dockerfile.armv5te-unknown-linux-musleabi

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ COPY qemu.sh /
1616
RUN /qemu.sh arm
1717

1818
COPY musl.sh /
19-
RUN /musl.sh \
20-
TARGET=arm-linux-musleabi \
21-
"COMMON_CONFIG += --with-arch=armv5te \
22-
--with-float=soft \
23-
--with-mode=arm"
19+
RUN /musl.sh TARGET=arm-linux-musleabi "COMMON_CONFIG += --with-arch=armv5te --with-float=soft --with-mode=arm"
2420

2521
COPY tidyup.sh /
2622
RUN /tidyup.sh

docker/Dockerfile.native.centos

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ RUN sed -i /etc/yum.repos.d/*.repo -e 's!^mirrorlist!#mirrorlist!' \
1717
-e 's!^#baseurl=http://mirror.centos.org/!baseurl=https://vault.centos.org/!'
1818
RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
1919

20-
2120
COPY common.sh lib.sh /
2221
RUN /common.sh
2322

docker/aarch64-linux-gnu-glibc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -euo pipefail
88

99
unpack_rpm() {
1010
local package="${1}"
11-
curl --retry 3 "http://mirror.centos.org/altarch/7/os/aarch64/Packages/${package}" -O
11+
curl --retry 3 "https://vault.centos.org/altarch/7/os/aarch64/Packages/${package}" -O
1212
rpm2cpio "${package}" | cpio -idmv
1313
}
1414

docker/cmake.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ main() {
1919
local cmake_sha256
2020

2121
local narch
22-
narch="$(dpkg --print-architecture)"
22+
narch="$(uname -p)"
23+
24+
echo "[INFO] $narch"
2325

2426
case "${narch}" in
25-
amd64)
27+
x86_64)
2628
cmake_arch="linux-x86_64"
2729
cmake_sha256="da2a9b18c3bfb136917fa1a579aa5316b01c1d6c111043d03f18877ff05bda30"
2830
;;

docker/freebsd.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ latest_freebsd() {
7979
local releases=
8080
local max_release=
8181

82-
response=$(curl --retry 3 -sSfL "${mirror}/${FREEBSD_ARCH}/" | grep RELEASE)
82+
response=$(curl -4 --retry 3 -sSfL "${mirror}/${FREEBSD_ARCH}/" | grep RELEASE)
8383
if [[ "${response}" != *RELEASE* ]]; then
8484
echo -e "\e[31merror:\e[0m could not find a candidate release for FreeBSD ${FREEBSD_MAJOR}." 1>&2
8585
exit 1
@@ -115,7 +115,7 @@ _freebsd_mirror() {
115115
# we need a timeout in case the server is down to avoid
116116
# infinitely hanging. timeout error code is always 124
117117
# these mirrors can be quite slow, so have a long timeout
118-
timeout 20s curl --retry 3 -sSfL "${mirror}/${FREEBSD_ARCH}/" >/dev/null
118+
timeout 20s curl -4 --retry 3 -sSfL "${mirror}/${FREEBSD_ARCH}/" >/dev/null
119119
code=$?
120120
if [[ "${code}" == 0 ]]; then
121121
echo "${mirror}"
@@ -173,7 +173,7 @@ main() {
173173
./contrib/download_prerequisites
174174
cd ..
175175

176-
curl --retry 3 -sSfL "${bsd_url}/base.txz" -O
176+
curl -4 --retry 3 -sSfL "${bsd_url}/base.txz" -O
177177
tar -C "${td}/freebsd" -xJf base.txz ./usr/include ./usr/lib ./lib
178178

179179
cd binutils-build
@@ -243,7 +243,7 @@ main() {
243243
purge_packages
244244

245245
# store the version info for the FreeBSD release
246-
bsd_revision=$(curl --retry 3 -sSfL "${bsd_url}/REVISION")
246+
bsd_revision=$(curl -4 --retry 3 -sSfL "${bsd_url}/REVISION")
247247
echo "${base_release} (${bsd_revision})" > /opt/freebsd-version
248248

249249
rm -rf "${td}"

docker/lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ download_mirrors() {
7878
shift
7979

8080
for mirror in "${@}"; do
81-
if curl --retry 3 -sSfL "${mirror}/${relpath}/${filename}" -O; then
81+
if curl -4 --retry 3 -sSfL "${mirror}/${relpath}/${filename}" -O; then
8282
break
8383
fi
8484
done

docker/linux-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ max_kernel_version() {
5757
main() {
5858
# arch in the rust target
5959
local arch="${1}" \
60-
kversion=5.10.0-33
60+
kversion=5.10.0-34
6161

6262
local debsource="deb http://http.debian.net/debian/ bullseye main"
6363
debsource="${debsource}\ndeb http://security.debian.org/ bullseye-security main"

docker/netbsd.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ main() {
5757
"ftp://ftp.netbsd.org"
5858
"https://cdn.NetBSD.org"
5959
)
60-
download_mirrors "pub/NetBSD/NetBSD-9.2/amd64/binary/sets" "base.tar.xz" "${mirrors[@]}"
60+
download_mirrors "pub/NetBSD/NetBSD-9.3/amd64/binary/sets" "base.tar.xz" "${mirrors[@]}"
6161
tar -C "${td}/netbsd" -xJf base.tar.xz ./usr/include ./usr/lib ./lib
6262

63-
download_mirrors "pub/NetBSD/NetBSD-9.2/amd64/binary/sets" "comp.tar.xz" "${mirrors[@]}"
63+
download_mirrors "pub/NetBSD/NetBSD-9.3/amd64/binary/sets" "comp.tar.xz" "${mirrors[@]}"
6464
tar -C "${td}/netbsd" -xJf comp.tar.xz ./usr/include ./usr/lib
6565

6666
pushd binutils-build

0 commit comments

Comments
 (0)