Added Linux tarball creator to standalone-exe action #31
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: Standalone Executable Generator | |
on: | |
push: | |
branches: [ master, dev ] | |
pull_request: | |
branches: [ master, dev ] | |
jobs: | |
windows-build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
python-version: ["3.13"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install winget | |
uses: Cyberboss/install-winget@v1 | |
- name: Install InnoSetup | |
run: | | |
winget source update --verbose-logs | |
winget install --source winget jrsoftware.innosetup --accept-package-agreements --accept-source-agreements | |
- name: Install Pyinstaller | |
run: pip install pyinstaller | |
- name: Install pymead | |
run: pip install . | |
- name: Generate executable | |
run: | | |
cd install | |
python -m install | |
- uses: actions/upload-artifact@v4 # Upload the setup executable to the GitHub actions workflow | |
with: | |
name: pymead-setup-exe | |
path: D:\a\pymead\pymead\install\pymeadsetup* | |
linux-build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ "3.13" ] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Pyinstaller | |
run: pip install pyinstaller | |
- name: Install pymead | |
run: pip install . | |
- name: Generate tarball | |
run: | | |
cd install | |
python -m install | |
- uses: actions/upload-artifact@v4 # Upload the tarball to the GitHub actions workflow | |
with: | |
name: pymead-linux-tarball | |
path: /home/runner/work/pymead/pymead/install/*.tar.gz | |
macos-build: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
python-version: [ "3.13" ] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Pyinstaller | |
run: pip install pyinstaller | |
- name: Install pymead | |
run: pip install . | |
- name: Generate tarball | |
run: | | |
cd install | |
python -m install | |
- uses: actions/upload-artifact@v4 # Upload the tarball to the GitHub actions workflow | |
with: | |
name: pymead-macos-tarball | |
path: /home/runner/work/pymead/pymead/install/*.tar.gz |