Skip to content

ci: add arm64 support #120

ci: add arm64 support

ci: add arm64 support #120

Workflow file for this run

name: Linux CI
on:
workflow_dispatch:
push:
branches:
- "dev"
paths-ignore:
- "docs/**"
- ".gitignore"
- LICENSE
- "*.md"
pull_request:
branches:
- "dev"
paths-ignore:
- "docs/**"
- "**/.gitignore"
- "**/.dockerignore"
- LICENSE
- "**/*.md"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- platform: amd64
arch: x86_64
- platform: arm64
arch: aarch64
steps:
- uses: actions/checkout@v4
- 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 Rust project
run: |
docker run --rm --platform linux/${{matrix.platform}} -v ${{ github.workspace }}:/app ghcr.io/${{ env.user }}/ubuntu-rust-gtk4:latest
sudo cp target/release/tsukimi .
sudo cp target/debian/*.deb .
sudo cp -r i18n/locale .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: tsukimi-${{matrix.arch}}-linux
path: |
tsukimi
moe.*.xml
locale/