Repository navigation
58 lines (58 loc) · 2.41 KB
/
Copy pathverify.yml
File metadata and controls
58 lines (58 loc) · 2.41 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
name: Verify and package
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
verify:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9
with:
dotnet-version: 9.0.x
- name: Core and CLI regression
if: runner.os == 'Linux'
run: dotnet run --project tests/FileChecklist.Tests -c Release
- name: Core, CLI and WPF workflow regression
if: runner.os == 'Windows'
shell: pwsh
run: ./tools/test.ps1
- name: Package Windows desktop and CLI
if: runner.os == 'Windows'
shell: pwsh
run: ./tools/publish.ps1
- name: Package Linux CLI
if: runner.os == 'Linux'
run: |
dotnet publish src/FileChecklist.Cli -c Release -r linux-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=None -p:DebugSymbols=false -o dist/filechecklist-cli-linux-x64
cp README.md README.zh-CN.md CONTRIBUTING.md LICENSE THIRD-PARTY-NOTICES.md dist/filechecklist-cli-linux-x64/
mkdir -p dist/filechecklist-cli-linux-x64/docs
cp docs/CLI.md docs/BROWSER.md docs/RELEASE-0.2.md docs/RELEASE-0.3.md docs/desktop.png docs/preview.png docs/desktop-en.png docs/preview-en.png docs/import-excel.png docs/import-excel-en.png docs/RELEASE-0.4.md dist/filechecklist-cli-linux-x64/docs/
cp -r examples licenses dist/filechecklist-cli-linux-x64/
dist/filechecklist-cli-linux-x64/filechecklist --help
tar -czf dist/filechecklist-cli-linux-x64.tar.gz -C dist filechecklist-cli-linux-x64
- name: Preserve packages
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: packages-${{ runner.os }}
path: |
dist/*.zip
dist/*.tar.gz
retention-days: 14
if-no-files-found: error
- name: Preserve Windows smoke diagnostics
if: always() && runner.os == 'Windows'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: windows-smoke
path: artifacts/ui-*/
retention-days: 7