forked from Die4Ever/build-engine-randomizer
-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (67 loc) · 2.74 KB
/
commit.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
86
name: Commit
on: [push]
jobs:
Windows-Commit:
runs-on: windows-latest
steps:
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v2
- run: cd ${{ github.workspace }}
- run: pip3 install pyinstaller tk typeguard
- run: python3 -m compileall -q .
- run: python3 tests.py
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: Build
run: pyinstaller buildrandomizer.py --onefile --noconsole --name build-engine-randomizer
- run: dir dist
- run: dist/build-engine-randomizer.exe --version
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: build-engine-randomizer
path: dist/build-engine-randomizer.exe
Linux-Commit:
runs-on: ubuntu-latest
steps:
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v2
- run: cd ${{ github.workspace }}
- run: sudo apt-get update -y
- run: sudo apt-get install -y python3-tk idle3
- run: pip3 install pyinstaller tk typeguard
- run: python3 -m compileall -q .
- run: python3 tests.py
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: Build
run: pyinstaller buildrandomizer.py --onefile --noconsole --name build-engine-randomizer-linux
- run: ls -lah dist
- run: dist/build-engine-randomizer-linux --version
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: build-engine-randomizer-linux
path: dist/build-engine-randomizer-linux
MacOS-Commit:
runs-on: macos-latest
steps:
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v2
- run: cd ${{ github.workspace }}
- run: brew install python-tk
- run: pip3 install pyinstaller tk typeguard
- run: python3 -m compileall -q .
- run: python3 tests.py
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: Build
run: pyinstaller buildrandomizer.py --onefile --noconsole --name build-engine-randomizer-macos
- run: ls -lah dist
- run: rm -rf dist/build-engine-randomizer-macos.app
- run: dist/build-engine-randomizer-macos --version
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: build-engine-randomizer-macos
path: dist/build-engine-randomizer-macos