-
Notifications
You must be signed in to change notification settings - Fork 528
59 lines (55 loc) · 2.24 KB
/
Copy pathdesktop-artifacts.yml
File metadata and controls
59 lines (55 loc) · 2.24 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
name: Desktop Artifacts
on:
workflow_call:
# Linux builds use the managed public fleet for main and same-repository PRs.
# macOS builds live in desktop-macos-main.yml.
push:
branches: [main]
paths:
- 'desktop/**'
- 'frontend/**'
- 'go.mod'
- 'go.sum'
- '.github/workflows/desktop-artifacts.yml'
- '.github/actions/build-desktop-artifact/**'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Desktop Build (${{ matrix.name }})
runs-on: ${{ contains(fromJSON('["ubuntu-latest","ubuntu-24.04","ubuntu-22.04"]'), matrix.os) && github.repository == 'kenn-io/agentsview' && (github.event_name == 'push' && github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.base.repo.full_name == github.repository)) && 'kenn-linux-x64-public' || matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Windows
os: windows-latest
bundle: nsis
target_triple: ""
artifact_name: agentsview-desktop-windows
artifact_dir: desktop/src-tauri/target/release/bundle/nsis/
- name: Linux
os: ubuntu-22.04
bundle: appimage
target_triple: ""
artifact_name: agentsview-desktop-linux
artifact_dir: desktop/src-tauri/target/release/bundle/appimage/
- name: Linux (arm64)
os: ubuntu-22.04-arm
bundle: appimage
target_triple: aarch64-unknown-linux-gnu
artifact_name: agentsview-desktop-linux-arm64
artifact_dir: desktop/src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/appimage/
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: ./.github/actions/build-desktop-artifact
with:
bundle: ${{ matrix.bundle }}
target_triple: ${{ matrix.target_triple }}
artifact_name: ${{ matrix.artifact_name }}
artifact_dir: ${{ matrix.artifact_dir }}