Repository navigation
95 lines (90 loc) · 2.97 KB
/
Copy pathci.yml
File metadata and controls
95 lines (90 loc) · 2.97 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
name: CI
on:
pull_request:
push:
branches:
- main
- master
workflow_dispatch:
permissions:
contents: read
jobs:
backend:
name: Backend and release source checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install test extras
run: python -m pip install -e ".[browser,pdf,ocr,office,test]"
- name: Compile release scripts
run: |
python -m py_compile \
script/generate_release_report.py \
script/bootstrap_runtime.py \
script/collect_release_artifacts.py \
script/verify_desktop_runtime_smoke.py \
script/verify_package_managers.py \
script/verify_release_report.py \
script/verify_desktop_parity.py \
script/verify_open_source_hygiene.py \
script/verify_publication_state.py \
script/verify_release_readiness.py
- name: Verify open-source hygiene
run: python script/verify_open_source_hygiene.py --skip-website
- name: Verify desktop parity
run: python script/verify_desktop_parity.py
- name: Verify desktop runtime smoke
run: python script/verify_desktop_runtime_smoke.py
- name: Verify package manager metadata
run: python script/verify_package_managers.py
- name: Verify release source readiness
run: python script/verify_release_readiness.py --skip-website
- name: Run backend tests
run: python -m unittest discover -v
macos:
name: macOS app package smoke
runs-on: macos-15
steps:
- uses: actions/checkout@v6
- name: Build macOS app
run: swift build --package-path apps/macos
- name: Package macOS zip
run: ./script/package_macos.sh
- name: Verify macOS zip
run: ./script/verify_macos_package.sh
- name: Upload macOS CI artifact
uses: actions/upload-artifact@v7
with:
name: Stram-macOS-ci
path: |
artifacts/release/Stram-macOS.zip
artifacts/release/Stram-macOS.pkg
artifacts/release/checksums.txt
windows:
name: Windows app package smoke
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-dotnet@v5
with:
dotnet-version: "8.0.x"
- name: Install Inno Setup
shell: pwsh
run: choco install innosetup --no-progress -y
- name: Package Windows zip
shell: pwsh
run: ./script/package_windows.ps1
- name: Verify Windows zip
shell: pwsh
run: ./script/verify_windows_package.ps1
- name: Upload Windows CI artifact
uses: actions/upload-artifact@v7
with:
name: Stram-Windows-ci
path: |
artifacts/release/Stram-Windows.zip
artifacts/release/Stram-Windows-Setup.exe
artifacts/release/checksums.txt