-
-
Notifications
You must be signed in to change notification settings - Fork 9
70 lines (59 loc) · 1.84 KB
/
main.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
name: CI
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest]
steps:
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: 3.10
architecture: x64
- uses: actions/checkout@v3
- name: Download UPX [windows-latest]
uses: i3h/[email protected]
if: ${{ matrix.os == 'windows-latest' }}
with:
owner: upx
repo: upx
tag: v3.96
file: upx-3.96-win64.zip
- name: Extract UPX [windows-latest]
if: ${{ matrix.os == 'windows-latest' }}
run: |
7z x upx-3.96-win64.zip
copy upx-3.96-win64\upx.exe upx.exe
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pipenv
python -m pipenv install --dev
- name: Test
run: python -m pipenv run tox
- name: Build [windows-latest]
if: ${{ matrix.os == 'windows-latest' }}
run: python -m pipenv run build_win_installer.bat
- name: Upload a Build Artifact [windows-latest]
uses: actions/upload-artifact@v3
if: ${{ matrix.os == 'windows-latest' }}
with:
name: shortcircuit.exe
path: ./dist/shortcircuit.exe
- name: Build [macos-latest]
if: ${{ matrix.os == 'macos-latest' }}
run: python -m pipenv run ./build_mac_installer.sh
- name: Upload a Build Artifact [macos-latest]
uses: actions/upload-artifact@v3
if: ${{ matrix.os == 'macos-latest' }}
with:
name: shortcircuit.app.tar.gz
path: ./dist/shortcircuit.app.tar.gz