forked from e1miran/Now-Playing-Serato
-
Notifications
You must be signed in to change notification settings - Fork 11
65 lines (59 loc) · 1.83 KB
/
pyinstaller.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# This workflow file generates binaries for both Windows
# and OS X. However, https://github.com/actions/upload-artifact/issues/38
# that basically says that it won't ever preserve permissions.
# That means an archive in an archive since we need to preserve them
# on OS X. Still... better than doing this all by hand.
# yamllint disable rule:line-length
---
name: pyinstaller
on: [push] # yamllint disable-line rule:truthy
jobs:
pyinstaller-macos-12:
runs-on: macos-12
steps:
- name: icu
run: |
brew update --preinstall || true
brew install pkg-config icu4c
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: update tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: run builder
run: |
export PATH="/usr/local/opt/icu4c/bin:/usr/local/opt/icu4c/sbin:${PATH}"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/opt/icu4c/lib/pkgconfig"
./builder.sh
- name: artifact dist
uses: actions/upload-artifact@v4
with:
name: macos-12-dist
path: "*.zip"
pyinstaller-win:
runs-on: windows-2019
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: update tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: run builder
shell: bash
run: |
./builder.sh
- name: artifact dist
uses: actions/upload-artifact@v4
with:
name: windows-dist
path: "NowPlaying*windows"