-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.59 KB
/
PyInstaller.yml
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
name: build-package
# Only run this when the master branch changes
on:
push:
workflow_dispatch:
#tags:
# - "v*"
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install redwrench
shell: bash -l {0}
run: |
pip3 install . --break-system-packages
- name: install PyInstaller
shell: bash -l {0}
run: |
pip3 install pyinstaller==6.6.0 --break-system-packages
- name: Build Pyinstaller .exe (macOS and Linux)
if: matrix.os != 'windows-latest'
shell: bash -l {0}
run: |
pyinstaller -n redwrench --onefile --windowed dosview.py
- name: Build Pyinstaller .exe (Windows)
if: matrix.os == 'windows-latest'
shell: bash -l {0}
run: |
pyinstaller -n redwrench --onefile dosview.py
- uses: vimtor/action-zip@v1
with:
files: dist/
recursive: false
dest: ${{ matrix.os }}-${{github.ref_name}}.zip
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{github.ref_name}}.zip
path: ${{ matrix.os }}-${{github.ref_name}}.zip
retention-days: 5
#- uses: softprops/action-gh-release@v1
# with:
# files: ${{ matrix.os }}-${{github.ref_name}}.zip