Skip to content

Commit

Permalink
reworks test-linux job of CI workflow to use hosted linux arm64 runners
Browse files Browse the repository at this point in the history
  • Loading branch information
tisba committed Jan 22, 2025
1 parent 3b0764d commit dbfd6af
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,17 @@ jobs:
- "3.2"
- "3.3"
- "3.4"
platform:
- "amd64"
- "arm64"
runner:
- "ubuntu-24.04"
- "ubuntu-24.04-arm"
libc:
- "gnu"
- "musl"

name: linux-${{ matrix.platform }} - ruby-${{ matrix.ruby }} - ${{ matrix.libc }}
runs-on: ubuntu-20.04
name: linux-${{ matrix.runner }} - ruby-${{ matrix.ruby }} - ${{ matrix.libc }}
runs-on: ${{ matrix.runner }}

steps:
- name: Enable ${{ matrix.platform }} platform
id: qemu
if: ${{ matrix.platform != 'amd64' }}
run: |
docker run --privileged --rm tonistiigi/binfmt:latest --install ${{ matrix.platform }} | tee platforms.json
- name: Start container
id: container
run: |
Expand All @@ -118,7 +113,7 @@ jobs:
;;
esac > container_image
echo "image=$(cat container_image)" >> $GITHUB_OUTPUT
docker run --rm -d -v "${PWD}":"${PWD}" -w "${PWD}" --platform linux/${{ matrix.platform }} $(cat container_image) /bin/sleep 64d | tee container_id
docker run --rm -d -v "${PWD}":"${PWD}" -w "${PWD}" $(cat container_image) /bin/sleep 64d | tee container_id
docker exec -w "${PWD}" $(cat container_id) uname -a
echo "container_id=$(cat container_id)" >> $GITHUB_OUTPUT
- name: Install Alpine system dependencies
Expand Down

0 comments on commit dbfd6af

Please sign in to comment.