From c2fbc25cba6456cf8e17e55290dcc112188cf019 Mon Sep 17 00:00:00 2001 From: Jason Cameron Date: Wed, 2 Oct 2024 17:58:32 -0400 Subject: [PATCH] Remove Arm64 build target --- .github/workflows/build.yml | 50 ------------------------------------- 1 file changed, 50 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b0b8e8259..120c68473 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -114,56 +114,6 @@ jobs: uses: codecov/codecov-action@v1 - name: Prepare cache for storage run: sudo chown -R "$USER:$USER" "$HOME/docker-cache" - arm64: - runs-on: [ self-hosted, Linux, ARM64 ] - strategy: - matrix: - python-version: [ '3.11' ] - steps: - - uses: actions/checkout@v3 - - name: Download docker image - run: docker pull dmoj/runtimes-tier3 - - name: Create docker scripts - run: | - cat > run <<'EOF' - #!/bin/bash -e - cp -r /source /code - cd /code - curl -L "https://github.com/DMOJ/runtimes-python/releases/latest/download/python${{ matrix.python-version }}-aarch64.tar.gz" | tar -xz - - export PYTHONUNBUFFERED=1 - export LANG=C.UTF-8 - export PYTHONIOENCODING=utf8 - export PYTHON="/code/python${{ matrix.python-version }}/bin/python${{ matrix.python-version }}" - - "$PYTHON" -m pip install --upgrade pip wheel - "$PYTHON" -m pip install cython coverage - "$PYTHON" -m pip install -e .[test] - chmod o+w . - - code=0 - runuser -u judge -w PATH /source/run-su || code=$? - cp /code/coverage.xml /source || true - exit "$code" - EOF - - cat > run-su <<'EOF' - #!/bin/bash -e - . ~/.profile - cd /code - "$PYTHON" -m coverage run -m unittest discover dmoj/tests/ - "$PYTHON" -m coverage run --append .docker.test.py - "$PYTHON" -m coverage combine - "$PYTHON" -m coverage xml - EOF - - chmod a+x run run-su - - name: Execute tests in docker - run: | - docker run -e PYTHON_VERSION="${{ matrix.python-version }}" -v "$(pwd):/source" -v "$HOME/docker-cache:/root/.cache" \ - --entrypoint=/usr/bin/tini --cap-add=SYS_PTRACE dmoj/runtimes-tier3 /source/run - - name: Upload coverage data - uses: codecov/codecov-action@v1 # build the docker image the tests pass build: