Repository navigation
79 lines (73 loc) · 1.95 KB
/
Copy pathbuild.yml
File metadata and controls
79 lines (73 loc) · 1.95 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
name: Build
on:
push:
branches: [ master ]
tags:
- '*.*.*'
pull_request:
branches: [ master ]
jobs:
build-Windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.16"
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Sync
run: uv sync
- name: Build with PyInstaller
run: uv run pyinstaller deploy/voyager.spec
- name: Building installer
run: |
"%programfiles(x86)%\Inno Setup 6\iscc.exe" "deploy/Installer.iss"
shell: cmd
- uses: actions/upload-artifact@v4
with:
name: Voyager-Installer-Windows
path: deploy/setup/voyagerSetup.exe
build-Linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.16"
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Sync
run: uv sync
- name: Wheel
run: uv build --wheel
- name: Build with PyInstaller
run: |
uv run pyinstaller deploy/voyager_onefile.spec
- uses: actions/upload-artifact@v4
with:
name: Voyager-Ubuntu
path: dist/
release:
needs: [build-Windows, build-Linux]
runs-on: ubuntu-22.04
steps:
- uses: actions/download-artifact@v4
- name: Display structure of downloaded files
run: ls -R
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
Voyager-Ubuntu/voyager
Voyager-Ubuntu/*.whl
Voyager-Installer-Windows/voyagerSetup.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}