-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.2 KB
/
Copy pathbuild.yml
File metadata and controls
41 lines (38 loc) · 1.2 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
name: Build
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Restore NAudio 1.10.0
shell: powershell
run: |
Invoke-WebRequest https://www.nuget.org/api/v2/package/NAudio/1.10.0 -OutFile NAudio.zip
Expand-Archive NAudio.zip -DestinationPath NAudio
Copy-Item NAudio/lib/net35/NAudio.dll vendor/NAudio.dll
- name: Fetch FFmpeg
shell: powershell
run: ./scripts/fetch-ffmpeg.ps1
- name: Build and package
shell: powershell
run: ./scripts/package.ps1
- name: Smoke test
shell: powershell
run: |
$process = Start-Process ./dist/ScreenRecorder/ScreenRecorder.exe -ArgumentList '--self-test' -PassThru -Wait
if ($process.ExitCode -ne 0) { throw "Self-test failed: $($process.ExitCode)" }
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ScreenRecorder-win-x64
path: |
dist/ScreenRecorder-v*-win-x64.zip
dist/SHA256SUMS.txt
dist/ffmpeg-8.1.1.tar.xz