-
-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (40 loc) · 1.12 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
name: Pytest
on:
workflow_call:
inputs:
python-version:
required: true
type: string
runs-on:
required: true
type: string
jobs:
pyinstaller:
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- uses: sanjacob/pipenv-requirements@v1
with:
from-pipfile: true
dev: true
- name: Install current package
run: pip install .
- name: Run PyInstaller
run: "pyinstaller BlackboardSync.spec --noconfirm --clean"
- name: Compress macOS build
if: startsWith(inputs.runs-on, 'macos')
run: "tar -czvf build.tar dist/*.app"
- name: Compress windows build
if: startsWith(inputs.runs-on, 'windows')
run: "tar -czvf build.tar dist/*"
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: ${{ format('build-{0}', inputs.runs-on) }}
path: build.tar