-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (39 loc) · 981 Bytes
/
build.yaml
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
name: Build binaries
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
fail-fast: false
max-parallel: 3
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install pyinstaller and dependencies
run: pip3 install --upgrade pyinstaller requests
- name: Set strip on Linux and Mac
id: strip
run: echo "option=--strip" >> $GITHUB_OUTPUT
if: runner.os != 'Windows'
- name: Build
run: pyinstaller
--onefile
--name gogdl
${{ steps.strip.outputs.option }}
gogdl/cli.py
env:
PYTHONOPTIMIZE: 1
- uses: actions/upload-artifact@v3
with:
name: gogdl-${{ runner.os }}
path: dist/*