Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Try arm64 runners #266

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 4 additions & 19 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,14 @@ jobs:

test:
name: Test
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
os: [ubuntu-22.04, ubuntu-22.04-arm]
env:
DOCKER_CLI_EXPERIMENTAL: enabled
PLATFORM: ${{ matrix.platform }}
BOOTUP_WAIT_SECONDS: ${{ matrix.platform == 'linux/amd64' && 30 || 90 }}

BOOTUP_WAIT_SECONDS: 30
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -88,14 +84,6 @@ jobs:
name: docker-registry-data
path: ${{ env.REGISTRY_PATH }}

- name: Enable Docker experimental
run: |
# Enable docker daemon experimental support.
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker
# Install QEMU multi-architecture support for docker buildx.
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

- name: Start Docker registry
run: |
docker run --rm --detach --publish 5000:5000 \
Expand All @@ -104,10 +92,7 @@ jobs:
sleep 10

- name: Import Docker images
run: docker pull --platform ${{ env.PLATFORM }} ${IMAGE_NAME}

- name: Docker inspect
run: docker buildx imagetools inspect ${IMAGE_NAME} | grep '${{ env.PLATFORM }}'
run: docker pull ${IMAGE_NAME}

- name: Setup Python
uses: actions/setup-python@v5
Expand Down
Loading