forked from tsukinaha/tsukimi
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (56 loc) · 1.47 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
52
53
54
55
56
57
58
59
60
61
62
63
name: Linux CI
on:
workflow_dispatch:
# push:
# branches:
# - "dev"
# paths-ignore:
# - "docs/**"
# - ".gitignore"
# - LICENSE
# - "*.md"
# pull_request:
# branches:
# - "dev"
# paths-ignore:
# - "docs/**"
# - ".gitignore"
# - 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
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
sudo cp target/release/tsukimi .
sudo cp target/debian/*.deb .
sudo cp -r i18n/locale .
sudo cp resources/moe*.xml .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: tsukimi-${{matrix.arch}}-linux
path: |
locale/
tsukimi
*.deb
moe*.xml