-
Notifications
You must be signed in to change notification settings - Fork 3
103 lines (80 loc) · 2.52 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
linux:
runs-on: ubuntu-18.04
timeout-minutes: 5
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v2
- name: Create environment and install dependencies
run: |
$CONDA/bin/conda env create --file environment.yml --name asciiviewer
- name: Create binary
run: |
$CONDA/envs/asciiviewer/bin/pyinstaller --clean -y --dist ./dist/linux ./asciiviewer.spec
- uses: actions/upload-artifact@v2
with:
name: asciiviewer-linux
path: ./dist/linux
macos:
runs-on: macos-10.15
timeout-minutes: 5
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v2
- name: Create environment and install dependencies
run: |
sudo $CONDA/bin/conda env create --file environment.yml --name asciiviewer
- name: Create macos app
run: |
$CONDA/envs/asciiviewer/bin/pyinstaller --clean -y --dist ./dist/macos ./asciiviewer.spec
rm -rf ./dist/macos/asciiviewer
- uses: actions/upload-artifact@v2
with:
name: asciiviewer-macos
path: ./dist/macos
windows:
runs-on: windows-latest
timeout-minutes: 5
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v2
- name: Create environment and install dependencies
run: |
%CONDA%\Scripts\conda.exe env create ^
--file environment.yml --name asciiviewer
shell: cmd
- name: Create binary
run: |
%CONDA%\envs\asciiviewer\Scripts\pyinstaller.exe ^
--clean -y --dist .\dist\windows64 .\asciiviewer.spec
shell: cmd
- uses: actions/upload-artifact@v2
with:
name: asciiviewer-windows64
path: .\dist\windows64
wine:
runs-on: ubuntu-18.04
timeout-minutes: 5
if: "!contains(github.event.head_commit.message, 'skip ci')"
container:
image: docker://cdrx/pyinstaller-windows:python3-32bit
steps:
- uses: actions/checkout@v2
- name: Install wine requirements
run: pip install -r requirements-wine.txt
- name: Create binary
run: |
python -m PyInstaller \
--dist ./dist/windows32 \
--onefile --windowed --noconsole --clean --noconfirm --noupx \
./asciiviewer.spec
- uses: actions/upload-artifact@v2
with:
name: asciiviewer-windows32
path: ./dist/windows32