-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (76 loc) · 2.37 KB
/
Copy pathrelease.yml
File metadata and controls
85 lines (76 loc) · 2.37 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
name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
create-release:
runs-on: ubuntu-latest
outputs:
release_id: ${{ steps.create-release.outputs.result }}
steps:
- uses: actions/checkout@v4
- name: Create draft release
id: create-release
uses: actions/github-script@v7
with:
script: |
const tag = context.ref.replace("refs/tags/", "");
const { data } = await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: tag,
name: `MainFrameWork ${tag}`,
body: [
"Windows build: verified against real Framework Laptop 16 hardware.",
"Linux build: builds and passes CI, not yet verified against real Linux hardware — see SECURITY.md.",
].join("\n\n"),
draft: true,
prerelease: false,
});
return data.id;
build:
needs: create-release
strategy:
fail-fast: false
matrix:
platform: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
# Same Tauri v2 Linux prerequisites (plus this app's own rusb/hidapi/
# serialport needs) as .github/workflows/ci.yml — keep the two lists
# in sync if either changes.
- name: Install Linux system dependencies
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
libusb-1.0-0-dev \
libudev-dev \
pkg-config
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: MainFrame/package-lock.json
- name: Install frontend dependencies
working-directory: MainFrame
run: npm ci
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
projectPath: MainFrame
releaseId: ${{ needs.create-release.outputs.release_id }}