forked from Entropy512/xphase_hacks
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1.09 KB
/
windows_pyinstaller.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
name: Build Windows EXEs
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Grab the DLLs
run: |
oras login -u entropy512 -p "${{ secrets.GITHUB_TOKEN }}" ghcr.io
oras pull -o pyinstaller_deps ghcr.io/entropy512/turbojpeg_libs:latest
- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: batonogov/pyinstaller-windows:python-3.11.7
options: -v ${{ github.workspace }}:/src/
run: |
pip install -r requirements.txt
pyinstaller --clean -y --dist ./pyi_dist --workpath /tmp xphasetools.spec
chown -R --reference=/src /src
chmod g+w -R pyi_dist
- name: Zip the PyInstaller folder
run: |
ls -al
cd pyi_dist
zip xphasetools.zip xphasetools -r
- name: Release
uses: softprops/action-gh-release@v2
with:
files: pyi_dist/xphasetools.zip