fix mapping #8
Workflow file for this run
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
name: Create executables | |
on: | |
push: | |
# branches: | |
# - main | |
# pull_request: null | |
tags: | |
- 'v*.*.*' | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies (Bash) | |
if: runner.os != 'Windows' | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install pyinstaller | |
pip install yahooquery | |
pip install tkmacosx | |
shell: bash | |
- name: Install dependencies (PowerShell) | |
if: runner.os == 'Windows' | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install pyinstaller | |
pip install yahooquery | |
pip install tkmacosx | |
shell: pwsh | |
- name: Create executable (macOS) | |
if: matrix.os == 'macos-latest' | |
run: | | |
pyinstaller --onefile --noconsole --add-data "assets:assets" user_interface.py | |
hdiutil create -volname UserInterface -srcfolder dist/ -ov -format UDZO user_interface.dmg | |
shell: bash | |
- name: Create executable (Linux) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
pyinstaller --onefile --noconsole --add-data "assets:assets" user_interface.py | |
shell: bash | |
- name: Create executable (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
pyinstaller --onefile --noconsole --add-data "assets;assets" user_interface.py | |
shell: pwsh | |
- name: Upload executable (macOS) | |
if: matrix.os == 'macos-latest' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: user_interface-macOS | |
path: user_interface.dmg | |
- name: Upload executable (Linux) | |
if: matrix.os == 'ubuntu-latest' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: user_interface-Linux | |
path: dist/user_interface | |
- name: Upload executable (Windows) | |
if: matrix.os == 'windows-latest' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: user_interface-Windows | |
path: dist/user_interface.exe |