From c1c70859aaeb674f9ab9ca4f06fc33184402a9f6 Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Wed, 7 Oct 2026 14:13:21 +0200 Subject: [PATCH] fix(ci): drop unsupported container platform option --- .gitea/workflows/kar-cuda-compile.yml | 2 +- scripts/test-kar-cuda-build-lock.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/kar-cuda-compile.yml b/.gitea/workflows/kar-cuda-compile.yml index 18d00d88..e7014bfe 100644 --- a/.gitea/workflows/kar-cuda-compile.yml +++ b/.gitea/workflows/kar-cuda-compile.yml @@ -22,7 +22,6 @@ jobs: timeout-minutes: 150 container: image: ubuntu@sha256:88a381d5b5eeb2b35d3ad70925a362c37ce569daf43ede89ff818ec20e4d3794 - options: --platform linux/amd64 env: NVIDIA_VISIBLE_DEVICES: void CUDA_VISIBLE_DEVICES: '' @@ -34,6 +33,7 @@ jobs: run: | set -euo pipefail python3 scripts/test-kar-cuda-build-lock.py + test "$(dpkg --print-architecture)" = amd64 test "$NVIDIA_VISIBLE_DEVICES" = void test -z "$CUDA_VISIBLE_DEVICES" if compgen -G '/dev/nvidia*' >/dev/null; then diff --git a/scripts/test-kar-cuda-build-lock.py b/scripts/test-kar-cuda-build-lock.py index e7479343..db573727 100644 --- a/scripts/test-kar-cuda-build-lock.py +++ b/scripts/test-kar-cuda-build-lock.py @@ -19,6 +19,7 @@ assert all(re.fullmatch(r'[0-9][A-Za-z0-9.+:~_-]*',v) for v in lock['apt_package workflow=(ROOT/'.gitea/workflows/kar-cuda-compile.yml').read_text() assert f"image: {lock['builder_image']}" in workflow assert 'pull_request:' in workflow and '\n push:' not in workflow +assert 'options: --platform' not in workflow assert 'NVIDIA_VISIBLE_DEVICES: void' in workflow assert "CUDA_VISIBLE_DEVICES: ''" in workflow assert 'docker run' not in workflow