-
-
Notifications
You must be signed in to change notification settings - Fork 19
94 lines (80 loc) · 2.45 KB
/
build.yml
File metadata and controls
94 lines (80 loc) · 2.45 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
name: Build Agentic Signal
permissions:
contents: write
on:
push:
branches: [main]
paths-ignore:
- 'docs/**'
- '**/*.md'
pull_request:
branches: [main]
paths-ignore:
- 'docs/**'
- '**/*.md'
jobs:
build:
strategy:
matrix:
platform: [windows-latest, macos-latest, ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v5
# Extract version from package.json
- name: Get Package Version
id: pkg_version
shell: bash
run: |
VERSION=$(jq -r '.version' package.json)
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
# Install Bun
- uses: oven-sh/setup-bun@v2
# Install root dependencies
- name: Install root dependencies
run: bun install
# Install client dependencies
- name: Install client dependencies
run: cd client && bun install
# Install Deno
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
# Custom: Build your backend for each platform
- name: Build backend (Windows)
if: matrix.platform == 'windows-latest'
run: bun run build:windows
- name: Build backend (macOS)
if: matrix.platform == 'macos-latest'
run: bun run build:macos
- name: Install Linux build dependencies
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- name: Build backend (Linux)
if: matrix.platform == 'ubuntu-latest'
run: bun run build:linux
# Official Tauri build & release upload
- uses: tauri-apps/tauri-action@v0
with:
tagName: v${{ steps.pkg_version.outputs.VERSION }}
releaseName: Agentic Signal v${{ steps.pkg_version.outputs.VERSION }}
releaseDraft: false
prerelease: false
projectPath: .
includeDebug: false
includeRelease: true
includeUpdaterJson: true
updaterJsonKeepUniversal: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Artifacts will be uploaded automatically by tauri-action to the release for all platforms.