Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 55 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
workflow_dispatch:

jobs:
build:
build_linux:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -24,20 +24,63 @@ jobs:
pip install pyinstaller
pip install pyqt5

- name: Build for Windows
- name: Build
run: pyinstaller --onefile cpppc.py
if: runner.os == 'Windows'

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: executable-linux
path: dist/

- name: Build for macOS
run: pyinstaller --onefile cpppc.py
if: runner.os == 'macOS'
build_windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build for Linux
run: pyinstaller --onefile cpppc.py
if: runner.os == 'Linux'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Archive artifacts
- name: Install dependencies
run: |
pip install pyinstaller
pip install pyqt5

- name: Build
run: pyinstaller --onefile cpppc.py

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: executables
name: executable-windows
path: dist/

build_macos:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install dependencies
run: |
pip install pyinstaller
pip install pyqt5

- name: Build
run: pyinstaller --onefile cpppc.py

- name: Upload artifacts
uses: actions/upload-artifact@v4

with:
name: executable-macos
path: dist/