-
Notifications
You must be signed in to change notification settings - Fork 1
108 lines (90 loc) · 2.65 KB
/
ci.yml
File metadata and controls
108 lines (90 loc) · 2.65 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Quality
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: quality-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-macos:
name: Build macOS Preview (${{ matrix.label }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- runner: macos-15
label: Apple Silicon
artifact_suffix: macos-arm64
- runner: macos-15-intel
label: Intel
artifact_suffix: macos-x64
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Prepare scripts
run: chmod +x scripts/*.sh
- name: Show toolchain
run: |
swift --version
xcodebuild -version
- name: Build debug app
run: ./scripts/build-dev-app.sh
- name: Verify debug app bundle
run: |
test -x "dist/Lime Pet.app/Contents/MacOS/LimePet"
test -f "dist/Lime Pet.app/Contents/Info.plist"
- name: Build release package preview
run: ./scripts/package-release.sh --version "0.0.0-ci" --build-number "${{ github.run_number }}" --artifact-suffix "${{ matrix.artifact_suffix }}"
- name: Upload macOS preview artifact
if: success()
uses: actions/upload-artifact@v6
with:
name: lime-pet-${{ matrix.artifact_suffix }}-preview
path: |
dist/release/*.dmg
dist/release/*.zip
dist/release/*.sha256
build-windows:
name: Build Windows Companion
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "22"
cache: "npm"
cache-dependency-path: "WindowsPet/package-lock.json"
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Show toolchain
run: |
node -v
npm -v
cargo -V
- name: Install Windows companion dependencies
working-directory: WindowsPet
run: npm ci
- name: Build Windows web assets
working-directory: WindowsPet
run: npm run build
- name: Build Windows installer preview
working-directory: WindowsPet
run: npm run tauri build
- name: Upload Windows preview artifact
if: success()
uses: actions/upload-artifact@v6
with:
name: lime-pet-windows-preview
path: |
WindowsPet/src-tauri/target/release/bundle/nsis/*.exe