Skip to content

Commit 9098cc7

Browse files
authored
perf: Use GitHub's native arm64 runners (#106)
GitHub now offers free arm64 runners. This means we can drop QEMU and builds will be much faster.
1 parent 3345da2 commit 9098cc7

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

.github/workflows/on-tag.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
jobs:
2020
build:
2121
name: Build bitcoind
22-
runs-on: ubuntu-22.04
22+
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
2323

2424
strategy:
2525
matrix:
@@ -29,11 +29,10 @@ jobs:
2929
- arm64v8
3030

3131
env:
32-
QEMU_VERSION: v5.0.0
3332
DOCKER_BUILDKIT: 1
3433

3534
steps:
36-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v4
3736

3837
- name: Setup environment
3938
run: |
@@ -63,10 +62,6 @@ jobs:
6362
printf " DIR: %s\n" "$DIR"
6463
printf " BUILD: %s\n" "$BUILD"
6564
66-
- name: Register self-compiled qemu
67-
if: matrix.arch != 'amd64'
68-
run: docker run --rm --privileged "meedamian/simple-qemu:$QEMU_VERSION-${{ matrix.arch }}" -p yes
69-
7065
- name: Build ${{ env.APP }}
7166
run: >
7267
docker build --no-cache "$DIR/"
@@ -130,7 +125,7 @@ jobs:
130125
deploy:
131126
name: Deploy to Docker Hub & Github Releases. Only after successful build.
132127

133-
runs-on: ubuntu-22.04
128+
runs-on: ubuntu-24.04
134129
needs: build
135130

136131
env:

.github/workflows/test.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
build:
1414
name: Build bitcoind
15-
runs-on: ubuntu-22.04
15+
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
1616

1717
strategy:
1818
fail-fast: false
@@ -29,15 +29,10 @@ jobs:
2929
- arm64v8
3030

3131
env:
32-
QEMU_VERSION: v5.0.0
3332
DOCKER_BUILDKIT: 1
3433

3534
steps:
36-
- uses: actions/checkout@v2
37-
38-
- name: Register self-compiled qemu
39-
if: matrix.arch != 'amd64'
40-
run: docker run --rm --privileged "meedamian/simple-qemu:$QEMU_VERSION-${{ matrix.arch }}" -p yes
35+
- uses: actions/checkout@v4
4136

4237
- name: Build ${{ env.APP }}
4338
run: >

0 commit comments

Comments
 (0)