-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.09 KB
/
python-app-exe.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 Executables for Multiple Platforms
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
python-version: [3.11]
architecture: [x64]
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Install PyInstaller
run: |
python -m pip install --upgrade pip
pip install pyinstaller
- name: Build Executable for Windows
if: runner.os == 'Windows'
run: |
pyinstaller --onefile --noconsole Hunting-Rabbit-DirScanner.py
- name: Build Executable for macOS and Linux
if: runner.os == 'macOS' || runner.os == 'Linux'
run: |
pyinstaller --onefile Hunting-Rabbit-DirScanner.py
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Executable-${{ matrix.os }}
path: dist/