chore/src_struct -> Build Packages ( 1 ) #9
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: Build -> Packages for Windows & MacOS | |
# yamllint disable-line rule:line-length | |
on: | |
workflow_dispatch: | |
# set the run-name | |
run-name: ${{ github.ref_name }} -> Build Packages ( | |
${{ github.run_attempt }} | |
) | |
jobs: | |
build: | |
name: Build packages | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: macos-latest | |
TARGET: macos | |
CMD_BUILD: > | |
pyinstaller podshell.spec && | |
pyinstaller podshell-console.spec && | |
cd dist/ && | |
zip -r9 podshell-macos * | |
OUT_FILE_NAME: podshell-macos.zip | |
OUT_ASSET_NAME: podshell-macos | |
- os: windows-latest | |
TARGET: windows | |
CMD_BUILD: > | |
pyinstaller podshell.spec && | |
pyinstaller podshell-console.spec && | |
cd dist && | |
tar -acvf podshell-windows.zip podshell-console.exe podshell.exe | |
OUT_FILE_NAME: podshell-windows.zip | |
OUT_ASSET_NAME: podshell-windows | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Set up Python 3.11 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r ./requirements.txt | |
pip install pyinstaller | |
pip install Pillow | |
- name: Build with pyinstaller for ${{matrix.TARGET}} | |
run: ${{matrix.CMD_BUILD}} | |
- name: Archive artifacts | |
uses: actions/[email protected] | |
with: | |
name: ${{ matrix.OUT_ASSET_NAME }} | |
path: dist/${{ matrix.OUT_FILE_NAME }} |