Pyinstaller #47
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: Pyinstaller | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
name: Pyinstaller (${{ matrix.python-version }}, ${{ matrix.os }}) | |
strategy: | |
matrix: | |
os: [ 'macos-latest', 'windows-latest' ] | |
python-version: ["3.11"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: ⬇️ Checkout | |
uses: actions/checkout@v3 | |
- name: 🔩 Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: 🐍 Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install upx on Linux # https://stackoverflow.com/questions/57982945/how-to-apt-get-install-in-a-github-actions-workflow | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install -y upx | |
- name: python -m pip install --upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: pip install pyinstaller | |
run: python -m pip install pyinstaller | |
- name: editable install | |
run: python -m pip install --editable . | |
- name: pyinstaller | |
shell: bash | |
run: bash build_with_pyinstaller.sh | |
- name: ls in dist folder | |
run: ls dist | |
- name: zip the app for Mac | |
if: matrix.os == 'macos-latest' | |
run: zip -r dist/seguid_calculator_for_mac.zip dist/seguid_calculator2.app | |
- name: Upload Mac | |
uses: softprops/action-gh-release@v1 | |
if: matrix.os == 'macos-latest' | |
with: | |
files: | | |
dist/seguid_calculator_for_mac.zip | |
- name: Upload Win Lin | |
uses: softprops/action-gh-release@v1 | |
if: matrix.os != 'macos-latest' | |
with: | |
files: | | |
dist/seguid_calculator2.exe | |
dist/seguid_calculator2 |