forked from tsukinaha/tsukimi
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.15 KB
/
build_linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Linux CI
on:
workflow_dispatch:
push:
branches:
- "arm"
paths-ignore:
- "docs/**"
- ".gitignore"
- LICENSE
- "*.md"
# pull_request:
# branches:
# - "main"
# paths-ignore:
# - "docs/**"
# - ".gitignore"
# - LICENSE
# - "*.md"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
platform: ["amd64", "arm64"]
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: Build Rust project
run: |
docker run --rm --platform linux/${{matrix.platform}} -v ${{ github.workspace }}:/app -v ./entrypoint.sh:/entrypoint.sh ghcr.io/kosette/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.platform}}-linux-gnu
path: |
tsukimi
moe.*.xml
locale/