-
Notifications
You must be signed in to change notification settings - Fork 0
128 lines (106 loc) · 3.8 KB
/
Copy pathrelease-assets.yml
File metadata and controls
128 lines (106 loc) · 3.8 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
name: Release Assets
on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
jobs:
linux-assets:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache Rust artifacts
uses: Swatinem/rust-cache@v2
- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.15.2
- name: Install Linux bundle tools
run: |
sudo apt-get update
sudo apt-get install -y \
meson \
ninja-build \
python3-gi \
xvfb \
libgtk-4-dev \
libadwaita-1-dev \
libjavascriptcoregtk-6.0-dev \
libwebkitgtk-6.0-dev
- name: Install pinned blueprint-compiler
run: |
prefix="${RUNNER_TEMP}/taskers-blueprint-compiler"
bash scripts/install_blueprint_compiler.sh "$prefix"
echo "${prefix}/bin" >> "$GITHUB_PATH"
"${prefix}/bin/blueprint-compiler" --version
- name: Build debug app for smoke
run: cargo build -p taskers --bin taskers --bin taskers-gtk --bin taskersctl --bin taskers-terminald
- name: Run headless app smoke
run: |
TASKERS_TERMINAL_BACKEND=mock \
TIMEOUT_SECONDS=90 \
bash scripts/headless-smoke.sh \
./target/debug/taskers \
--smoke-script baseline \
--diagnostic-log stderr \
--quit-after-ms 5000
- name: Build Ghostty runtime bundle
run: bash scripts/build_ghostty_runtime_bundle.sh
- name: Build Linux app bundle
run: bash scripts/build_linux_bundle.sh
- name: Build release manifest
run: python3 scripts/build_release_manifest.py
- name: Prepare latest-release aliases
run: |
version="$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n1)"
cp "dist/taskers-linux-bundle-v${version}-x86_64-unknown-linux-gnu.tar.xz" \
"dist/taskers-linux-bundle-x86_64-unknown-linux-gnu.tar.xz"
cp "dist/taskers-manifest-v${version}.json" "dist/taskers-manifest.json"
- name: Run installed package smoke
run: TIMEOUT_SECONDS=90 bash scripts/smoke_linux_release_launcher.sh
- name: Upload release assets
uses: actions/upload-artifact@v4
with:
name: release-assets
path: |
dist/taskers-ghostty-runtime-v*.tar.xz
dist/taskers-linux-bundle-v*.tar.xz
dist/taskers-linux-bundle-x86_64-unknown-linux-gnu.tar.xz
dist/taskers-manifest-v*.json
dist/taskers-manifest.json
upload-github-release:
if: startsWith(github.ref, 'refs/tags/v')
needs:
- linux-assets
runs-on: ubuntu-latest
steps:
- name: Download built assets
uses: actions/download-artifact@v4
with:
path: dist
- name: Flatten downloaded artifacts
run: |
mkdir -p dist/release
find dist -type f -exec cp {} dist/release/ \;
- name: Prepare release asset list
id: release-files
run: |
{
echo 'files<<EOF'
echo 'dist/release/taskers-ghostty-runtime-v*.tar.xz'
echo 'dist/release/taskers-linux-bundle-v*.tar.xz'
echo 'dist/release/taskers-linux-bundle-x86_64-unknown-linux-gnu.tar.xz'
echo 'dist/release/taskers-manifest-v*.json'
echo 'dist/release/taskers-manifest.json'
echo 'EOF'
} >> "$GITHUB_OUTPUT"
- name: Create draft GitHub release with assets
uses: softprops/action-gh-release@v2
with:
draft: true
files: ${{ steps.release-files.outputs.files }}