Skip to content

Commit 7044ed2

Browse files
Create Build Binaries
1 parent b412f28 commit 7044ed2

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/Build Binaries

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build Binaries
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
name: Building Binary on ${{ matrix.os }}
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest, macOS-latest, windows-latest]
13+
python-version: ["3.12"]
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: NetExec set up python on ${{ matrix.os }}
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Build Native Binary
21+
run: |
22+
pip install pyinstaller pillow
23+
pip install .
24+
pyinstaller wddh.spec
25+
- name: Upload Windows Binary
26+
if: runner.os == 'windows'
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: wddh.exe
30+
path: dist/wddh.exe
31+
- name: Upload Nix/OSx Binary
32+
if: runner.os != 'windows'
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: nxc-${{ matrix.os }}
36+
path: dist/wddh

0 commit comments

Comments
 (0)