Skip to content

Commit de389ef

Browse files
Use Arm runners in GitHub Actions
1 parent 9a3855a commit de389ef

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ jobs:
183183
path: ${{github.workspace}}/dist/**/*
184184

185185
libuiohook-linux-arm:
186-
runs-on: ubuntu-latest
186+
runs-on: ubuntu-latest-arm
187187

188188
steps:
189189
- name: Checkout
@@ -254,7 +254,7 @@ jobs:
254254
path: ${{github.workspace}}/dist/**/*
255255

256256
libuiohook-linux-arm64:
257-
runs-on: ubuntu-latest
257+
runs-on: ubuntu-latest-arm
258258

259259
steps:
260260
- name: Checkout
@@ -265,24 +265,6 @@ jobs:
265265
- name: Setup
266266
shell: bash
267267
run: |
268-
sudo rm -Rf /etc/apt/sources.list.d/*
269-
sudo bash -c 'source /etc/lsb-release && echo "
270-
deb [arch=amd64,i386] https://us.archive.ubuntu.com/ubuntu ${DISTRIB_CODENAME} main universe
271-
deb [arch=amd64,i386] https://us.archive.ubuntu.com/ubuntu ${DISTRIB_CODENAME}-updates main universe
272-
deb [arch=amd64,i386] https://us.archive.ubuntu.com/ubuntu ${DISTRIB_CODENAME}-backports main universe
273-
274-
deb [arch=arm64,armhf] https://ports.ubuntu.com/ubuntu-ports ${DISTRIB_CODENAME} main universe
275-
deb [arch=arm64,armhf] https://ports.ubuntu.com/ubuntu-ports ${DISTRIB_CODENAME}-updates main universe
276-
deb [arch=arm64,armhf] https://ports.ubuntu.com/ubuntu-ports ${DISTRIB_CODENAME}-backports main universe
277-
" > /etc/apt/sources.list'
278-
279-
sudo dpkg --add-architecture arm64
280-
sudo apt update -m
281-
282-
sudo apt install -qy \
283-
binutils-aarch64-linux-gnu \
284-
gcc-aarch64-linux-gnu
285-
286268
sudo apt install -qy \
287269
libx11-dev:arm64 \
288270
libxtst-dev:arm64 \
@@ -379,7 +361,7 @@ jobs:
379361
path: ${{github.workspace}}/dist/**/*
380362

381363
libuiohook-windows-arm64:
382-
runs-on: windows-latest
364+
runs-on: windows-latest-arm
383365

384366
steps:
385367
- uses: actions/checkout@v5
@@ -389,7 +371,7 @@ jobs:
389371
- name: Setup
390372
uses: ilammy/msvc-dev-cmd@v1
391373
with:
392-
arch: amd64_arm64
374+
arch: arm64
393375

394376
- name: Compile
395377
shell: pwsh

0 commit comments

Comments
 (0)