-
Notifications
You must be signed in to change notification settings - Fork 0
154 lines (128 loc) · 4.95 KB
/
release.yml
File metadata and controls
154 lines (128 loc) · 4.95 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
name: Release
on:
push:
tags:
- 'v*'
jobs:
build-standalone:
name: Build Standalone (${{ matrix.target }})
strategy:
matrix:
include:
- platform: ubuntu-22.04
target: x86_64-unknown-linux-gnu
artifact-name: standalone-linux-x64
- platform: macos-latest
target: aarch64-apple-darwin
artifact-name: standalone-mac-aarch64
- platform: windows-latest
target: x86_64-pc-windows-msvc
artifact-name: standalone-win-x64
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: pnpm/action-setup@v4
with:
version: 10
- name: Install workspace dependencies
run: pnpm install --frozen-lockfile
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: standalone/src-tauri
- name: Install system dependencies (Linux)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Build Tauri app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Dummy key so Tauri generates updater artifacts; real signing happens locally
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with:
projectPath: standalone
tauriScript: pnpm tauri
args: --target ${{ matrix.target }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact-name }}
path: |
standalone/src-tauri/target/${{ matrix.target }}/release/mouseterm.exe
standalone/src-tauri/target/${{ matrix.target }}/release/bundle/**/*.exe
standalone/src-tauri/target/${{ matrix.target }}/release/bundle/**/*.msi
standalone/src-tauri/target/${{ matrix.target }}/release/bundle/**/*.dmg
standalone/src-tauri/target/${{ matrix.target }}/release/bundle/**/*.app
standalone/src-tauri/target/${{ matrix.target }}/release/bundle/**/*.app.tar.gz
standalone/src-tauri/target/${{ matrix.target }}/release/bundle/**/*.app.tar.gz.sig
standalone/src-tauri/target/${{ matrix.target }}/release/bundle/**/*.AppImage
standalone/src-tauri/target/${{ matrix.target }}/release/bundle/**/*.AppImage.tar.gz
standalone/src-tauri/target/${{ matrix.target }}/release/bundle/**/*.AppImage.tar.gz.sig
standalone/src-tauri/target/${{ matrix.target }}/release/bundle/**/*.deb
standalone/src-tauri/target/${{ matrix.target }}/release/bundle/**/*.nsis.zip
standalone/src-tauri/target/${{ matrix.target }}/release/bundle/**/*.nsis.zip.sig
standalone/src-tauri/target/${{ matrix.target }}/release/bundle/nsis/**
build-vscode:
name: Build VSCode Extension
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: pnpm/action-setup@v4
with:
version: 10
- name: Install workspace dependencies
run: pnpm install --frozen-lockfile
- name: Test lib
run: pnpm --filter mouseterm-lib test
- name: Build frontend for VSCode
run: pnpm --filter mouseterm build:frontend
- name: Build extension
run: pnpm --filter mouseterm build
- name: Package extension
run: cd vscode-ext && npx vsce package --no-dependencies
- name: Upload .vsix
uses: actions/upload-artifact@v4
with:
name: vscode-extension
path: vscode-ext/*.vsix
publish-vscode:
name: Publish VSCode Extension
needs:
- build-standalone
- build-vscode
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: pnpm/action-setup@v4
with:
version: 10
- name: Install workspace dependencies
run: pnpm install --frozen-lockfile
- name: Download .vsix
uses: actions/download-artifact@v4
with:
name: vscode-extension
path: vscode-ext
- name: Publish to VS Code Marketplace
run: cd vscode-ext && npx vsce publish --packagePath *.vsix --no-dependencies
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: Publish to OpenVSX
run: cd vscode-ext && npx ovsx publish --packagePath *.vsix --no-dependencies
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}