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