-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
618a560
commit 16d58d4
Showing
1 changed file
with
46 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,53 @@ | ||
name: Build with PyInstaller for Windows | ||
name: Build with PyInstaller | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install dependencies | ||
run: pip install pyinstaller pyqt6 | ||
|
||
- name: Build for Windows | ||
run: pyinstaller --onefile main.py | ||
working-directory: ${{ github.workspace }} | ||
|
||
- name: Upload Windows executable | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: color_palette_windows | ||
path: dist/main.exe | ||
|
||
macos: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install dependencies | ||
run: pip install pyinstaller pyqt6 | ||
|
||
- name: Build with PyInstaller | ||
run: pyinstaller --onefile main.py | ||
working-directory: ${{ github.workspace }} | ||
|
||
- name: Upload executable | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: color_palette | ||
path: dist/main.exe | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install dependencies | ||
run: pip install pyinstaller pyqt6 | ||
|
||
- name: Build for macOS | ||
run: pyinstaller --onefile main.py | ||
working-directory: ${{ github.workspace }} | ||
|
||
- name: Upload macOS executable | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: color_palette_macos | ||
path: dist/main | ||
|