Skip to content

Commit dbfd6af

Browse files
committed
reworks test-linux job of CI workflow to use hosted linux arm64 runners
1 parent 3b0764d commit dbfd6af

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,22 +90,17 @@ jobs:
9090
- "3.2"
9191
- "3.3"
9292
- "3.4"
93-
platform:
94-
- "amd64"
95-
- "arm64"
93+
runner:
94+
- "ubuntu-24.04"
95+
- "ubuntu-24.04-arm"
9696
libc:
9797
- "gnu"
9898
- "musl"
9999

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

103103
steps:
104-
- name: Enable ${{ matrix.platform }} platform
105-
id: qemu
106-
if: ${{ matrix.platform != 'amd64' }}
107-
run: |
108-
docker run --privileged --rm tonistiigi/binfmt:latest --install ${{ matrix.platform }} | tee platforms.json
109104
- name: Start container
110105
id: container
111106
run: |
@@ -118,7 +113,7 @@ jobs:
118113
;;
119114
esac > container_image
120115
echo "image=$(cat container_image)" >> $GITHUB_OUTPUT
121-
docker run --rm -d -v "${PWD}":"${PWD}" -w "${PWD}" --platform linux/${{ matrix.platform }} $(cat container_image) /bin/sleep 64d | tee container_id
116+
docker run --rm -d -v "${PWD}":"${PWD}" -w "${PWD}" $(cat container_image) /bin/sleep 64d | tee container_id
122117
docker exec -w "${PWD}" $(cat container_id) uname -a
123118
echo "container_id=$(cat container_id)" >> $GITHUB_OUTPUT
124119
- name: Install Alpine system dependencies

0 commit comments

Comments
 (0)