Skip to content

Commit dc056a8

Browse files
committed
Add Windows PyInstaller github actions workflow
1 parent bffbc84 commit dc056a8

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build Windows EXEs
2+
3+
on:
4+
workflow_dispatch:
5+
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout the repo
16+
uses: actions/checkout@v4
17+
18+
- name: Grab the DLLs
19+
run: |
20+
oras login -u entropy512 -p "${{ secrets.GITHUB_TOKEN }}" ghcr.io
21+
oras pull -o pyinstaller_deps ghcr.io/entropy512/turbojpeg_libs:latest
22+
23+
- name: Run the build process with Docker
24+
uses: addnab/docker-run-action@v3
25+
with:
26+
image: batonogov/pyinstaller-windows:python-3.11.7
27+
options: -v ${{ github.workspace }}:/src/
28+
run: |
29+
pip install -r requirements.txt
30+
pyinstaller --clean -y --dist ./pyi_dist --workpath /tmp xphasetools.spec
31+
chown -R --reference=/src /src
32+
chmod g+w -R pyi_dist
33+
34+
- name: Zip the PyInstaller folder
35+
run: |
36+
ls -al
37+
cd pyi_dist
38+
zip xphasetools.zip xphasetools -r
39+
40+
- name: Release
41+
uses: softprops/action-gh-release@v2
42+
with:
43+
files: pyi_dist/xphasetools.zip

0 commit comments

Comments
 (0)