File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8989 [[ "${MARCH}" == "arm64" ]] && {
9090 echo "CGO_ENABLED=1" >> $GITHUB_ENV
9191 echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
92+ echo "SECCOMP_ARCH=aarch64" >> $GITHUB_ENV
9293 }
9394 echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
9495
@@ -173,7 +174,7 @@ jobs:
173174 RUNC_FLAVOR : runc
174175 run : |
175176 if [[ "${GOOS}" == "linux" ]]; then
176- sudo -E PATH=$PATH script/setup/install-seccomp
177+ sudo -E PATH=$PATH -E SECCOMP_ARCH="${SECCOMP_ARCH}" script/setup/install-seccomp
177178 fi
178179 make cri-cni-release
179180 working-directory : src/github.com/containerd/containerd
Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ export SECCOMP_PATH=$(mktemp -d)
2727curl -fsSL " https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION} /libseccomp-${SECCOMP_VERSION} .tar.gz" | tar -xzC " $SECCOMP_PATH " --strip-components=1
2828(
2929 cd " $SECCOMP_PATH "
30- ./configure --prefix=/usr/local
30+ host=" "
31+ if [ -v SECCOMP_ARCH ]; then
32+ host=" --host=${SECCOMP_ARCH} "
33+ fi
34+ ./configure --prefix=/usr/local ${host}
3135 make
3236 make install
3337 ldconfig
You can’t perform that action at this time.
0 commit comments