Skip to content

Linux CI

Linux CI #124

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 tsukimi for ${{ matrix.platform }}
run: |
docker run --rm --platform linux/${{matrix.platform}} -v ${{ github.workspace }}:/app -v ./docker/entrypoint.sh:/entrypoint.sh 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
*.deb
moe*.xml
locale/