Repository navigation
151 lines (132 loc) · 4.85 KB
/
Copy pathdebug.yml
File metadata and controls
151 lines (132 loc) · 4.85 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
name: 'debug'
on:
workflow_dispatch:
permissions:
contents: read
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- name: Windows x64
runner: windows-latest
target: x86_64-pc-windows-msvc
- name: Windows arm64
runner: windows-11-arm
target: aarch64-pc-windows-msvc
- name: macOS Intel
runner: macos-26-intel
target: x86_64-apple-darwin
- name: macOS arm64
runner: macos-26
target: aarch64-apple-darwin
- name: Linux x64 GNU
runner: ubuntu-22.04
target: x86_64-unknown-linux-gnu
- name: Linux arm64 GNU
runner: ubuntu-22.04-arm
target: aarch64-unknown-linux-gnu
name: ${{ matrix.name }}
runs-on: ${{ matrix.runner }}
steps:
- name: Check out repository
uses: actions/checkout@v6
with:
submodules: recursive
- name: Install pnpm
uses: pnpm/action-setup@v6
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version-file: .node-version
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install uv for yt-dlp source build
uses: astral-sh/setup-uv@main
with:
version: "latest"
enable-cache: true
cache-python: true
cache-dependency-glob: |
yt-dlp/pyproject.toml
yt-dlp/bundle/requirements/*.txt
- name: Install Rust toolchain and targets
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: ${{ matrix.target }}
- name: Install .NET SDK
if: ${{ !(matrix.name == 'Windows x64' || matrix.name == 'Windows arm64') }}
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: install dependencies (Linux only)
if: ${{ matrix.name == 'Linux x64 GNU' || matrix.name == 'Linux arm64 GNU' }}
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
curl \
file \
libayatana-appindicator3-dev \
librsvg2-dev \
libssl-dev \
libwebkit2gtk-4.1-dev \
libxdo-dev \
pkg-config \
wget \
xdg-utils \
patchelf \
rpm \
gnupg
- name: Install frontend dependencies and build
run: |
pnpm install --frozen-lockfile
pnpm build
- name: import windows certificate
if: ${{ matrix.name == 'Windows x64' || matrix.name == 'Windows arm64' }}
env:
WINDOWS_CERTIFICATE: ${{ secrets.WINDOWS_CERTIFICATE }}
WINDOWS_CERTIFICATE_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}
run: |
New-Item -ItemType directory -Path certificate
Set-Content -Path certificate/tempCert.txt -Value $env:WINDOWS_CERTIFICATE
certutil -decode certificate/tempCert.txt certificate/certificate.pfx
Remove-Item -path certificate -include tempCert.txt
Import-PfxCertificate -FilePath certificate/certificate.pfx -CertStoreLocation Cert:\CurrentUser\My -Password (ConvertTo-SecureString -String $env:WINDOWS_CERTIFICATE_PASSWORD -Force -AsPlainText)
- name: Import GPG Key
if: ${{ matrix.name == 'Linux x64 GNU' || matrix.name == 'Linux arm64 GNU' }}
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_KEY_ID: ${{ secrets.GPG_PRIVATE_KEY_ID }}
run: |
install -m 700 -d ~/.gnupg
printf '%s' "$GPG_PRIVATE_KEY" | gpg --batch --import
gpg --batch --list-secret-keys --keyid-format LONG "$GPG_KEY_ID"
- name: Build Debug Bundles
uses: tauri-apps/tauri-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# RPM Signing
TAURI_SIGNING_RPM_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
TAURI_SIGNING_RPM_KEY_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
# Ad hoc signing identity
APPLE_SIGNING_IDENTITY: '-'
# Updater Signing
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
# Appimage
SIGN: 1
SIGN_KEY: ${{ secrets.GPG_PRIVATE_KEY_ID}}
APPIMAGETOOL_SIGN_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE}}
APPIMAGETOOL_FORCE_SIGN: 1
APPIMAGE_EXTRACT_AND_RUN: 1
NO_STRIP: true
with:
uploadWorkflowArtifacts: true
uploadUpdaterJson: false
uploadUpdaterSignatures: false
args: --target ${{ matrix.target }} --debug --verbose -- -vv