-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (45 loc) · 1.83 KB
/
ci.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
name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install PIP Modules
run: python -m pip install -r requirements.txt
- name: Build Project (Dynamic build)
if: matrix.os == 'windows-latest'
run: pyinstaller --noconsole --name="Mario Party Toolkit" --add-data "assets/*;assets/" --distpath=dynamic --icon="assets/diceBlock.ico" main.py
- name: Build Project (Static build)
if: matrix.os == 'windows-latest'
run: pyinstaller --onefile --noconsole --name="Mario Party Toolkit" --add-data "assets/*;assets/" --icon="assets/diceBlock.ico" main.py
- name: Build Project (macOS build)
if: matrix.os == 'macos-latest'
run: pyinstaller --onefile --noconsole --name="Mario Party Toolkit" --add-data "assets/*:assets/" --icon="assets/diceBlock.ico" main.py
- name: Purge Files (macOS build)
if: matrix.os == 'macos-latest'
run: cd "/Users/runner/work/Mario-Party-Toolkit/Mario-Party-Toolkit/dist/" && rm "Mario Party Toolkit"
- name: Upload Artifact
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v2
with:
name: MarioPartyToolkit-win32-static
path: D:\a\Mario-Party-Toolkit\Mario-Party-Toolkit\dist
- name: Upload Artifact
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v2
with:
name: MarioPartyToolkit-win32-dynamic
path: D:\a\Mario-Party-Toolkit\Mario-Party-Toolkit\dynamic
- name: Upload Artifact
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v2
with:
name: MarioPartyToolkit-darwin
path: /Users/runner/work/Mario-Party-Toolkit/Mario-Party-Toolkit/dist