Skip to content

Commit

Permalink
ci: use arm runner image to accelerate arm64 building (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kosette authored Jan 18, 2025
1 parent 3f708e7 commit dfb82f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,23 @@ on:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- platform: amd64
os: ubuntu-latest
arch: x86_64
# - platform: arm64
# arch: aarch64
- platform: arm64
os: ubuntu-24.04-arm
arch: aarch64

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Metadata
run: |
echo "user=${GITHUB_REPOSITORY_OWNER@L}" >> ${GITHUB_ENV}
- name: Build tsukimi for ${{ matrix.platform }}
run: |
docker run --rm --platform linux/${{matrix.platform}} -v ${{ github.workspace }}:/app -v ./docker/entrypoint.sh:/entrypoint.sh ghcr.io/kosette/ubuntu-rust-gtk4:latest
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
target: amd64
# aarch64-linux
- arch: aarch64-linux
os: ubuntu-latest
os: ubuntu-24.04-arm
target: arm64
# x86_64-windows-gnu
- arch: x86_64-windows-gnu
Expand Down Expand Up @@ -146,10 +146,6 @@ jobs:
retention-days: 3
if-no-files-found: error

- name: Set up QEMU
if: ${{ matrix.arch == 'x86_64-linux' || matrix.arch == 'aarch64-linux' }}
uses: docker/setup-qemu-action@v3

- name: Build ${{ matrix.arch }}
if: ${{ matrix.arch == 'x86_64-linux' || matrix.arch == 'aarch64-linux' }}
run: |
Expand Down

0 comments on commit dfb82f1

Please sign in to comment.