Skip to content

Commit

Permalink
Remove Arm64 build target
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo authored Oct 2, 2024
1 parent 801a7f9 commit c2fbc25
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c2fbc25

Please sign in to comment.