This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (79 loc) · 2.04 KB
/
build.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
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Builds
on:
workflow_dispatch:
push:
branches: [ "main" ]
tags:
- '*'
pull_request:
branches: [ "main" ]
tags:
- '*'
permissions:
contents: read
jobs:
build-windows:
runs-on: windows-latest
name: Windows Builds
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: 'pip'
- name: Install dependencies
run: |
pip install pyinstaller
pip install -r requirements.txt
- name: Build with pyinstaller
run: pyinstaller main.spec
- uses: actions/upload-artifact@v3
with:
name: sumzero-win
path: dist
if-no-files-found: error
build-linux:
runs-on: ubuntu-latest
name: Linux Builds
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: 'pip'
- name: Install dependencies
run: |
pip install pyinstaller
pip install -r requirements.txt
- name: Build with pyinstaller
run: pyinstaller main.spec
- uses: actions/upload-artifact@v3
with:
name: sumzero-linux
path: dist
if-no-files-found: error
build-macos:
runs-on: macos-latest
name: MacOS Builds
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: 'pip'
- name: Install dependencies
run: |
pip install pyinstaller
pip install -r requirements.txt
- name: Build with pyinstaller
run: pyinstaller main.spec
- uses: actions/upload-artifact@v3
with:
name: sumzero-macos
path: dist
if-no-files-found: error