Skip to content

Commit f05cf1d

Browse files
authored
[ci] Switch from qemu to native github arm64 runner (#7258)
1 parent e629264 commit f05cf1d

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ jobs:
218218
# Keep in sync with build_release.yml
219219
build-alpine:
220220
name: alpine
221-
runs-on: ubuntu-latest
221+
runs-on: ubuntu-24.04-arm
222222
steps:
223223
- uses: actions/setup-python@v5
224224
with:
@@ -228,7 +228,7 @@ jobs:
228228
submodules: true
229229
- name: start docker
230230
run: |
231-
docker run -w /src -dit --name alpine -v $PWD:/src node:lts-alpine
231+
docker run -w /src -dit --platform=linux/arm64 --name alpine -v $PWD:/src node:lts-alpine
232232
echo 'docker exec alpine "$@";' > ./alpine.sh
233233
chmod +x ./alpine.sh
234234

.github/workflows/create_release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,24 +105,21 @@ jobs:
105105
# Note: Alpine uses musl libc.
106106
build-alpine:
107107
name: alpine
108-
runs-on: ubuntu-latest
108+
runs-on: ${{ matrix.os }}
109109
strategy:
110110
matrix:
111-
docker_platform: [amd64, arm64]
111+
os: [ubuntu-latest, ubuntu-24.04-arm]
112112
steps:
113113
- uses: actions/setup-python@v1
114114
with:
115115
python-version: '3.x'
116116
- uses: actions/checkout@v1
117117
with:
118118
submodules: true
119-
- name: Set up QEMU
120-
uses: docker/setup-qemu-action@v3
121-
if: matrix.docker_platform != 'amd64'
122119

123120
- name: start docker
124121
run: |
125-
docker run -w /src -dit --platform=linux/${{ matrix.docker_platform }} --name alpine -v $PWD:/src node:lts-alpine
122+
docker run -w /src -dit --name alpine -v $PWD:/src node:lts-alpine
126123
echo 'docker exec alpine "$@";' > ./alpine.sh
127124
chmod +x ./alpine.sh
128125

0 commit comments

Comments
 (0)