Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
include:
- os: macos-11
TARGET: macos
CMD_INSTALL: >
python -m pip install --upgrade pip &&
pip install -r requirements.txt
CMD_BUILD: >
cd PySoar &&
pyinstaller --windowed main_pysoar.py &&
Expand All @@ -23,23 +26,37 @@ jobs:
ASSET_MIME: application/zip
- os: windows-latest
TARGET: windows
CMD_INSTALL: >
python -m pip install --upgrade pip &&
pip install -r requirements.txt
CMD_BUILD: >
cd PySoar &&
pyinstaller --onefile --windowed main_pysoar.py &&
mv dist/main_pysoar.exe dist/windows_pysoar.exe
OUT_FILE_NAME: windows_pysoar
OUT_FILE_PATH: PySoar/dist/windows_pysoar.exe
ASSET_MIME: application/vnd.microsoft.portable-executable
- os: ubuntu-22.04
TARGET: linux
CMD_INSTALL: >
sudo apt install python3-pip make gcc libgtk-3-dev libgstreamer-gl1.0-0 freeglut3 freeglut3-dev python3-gst-1.0 libglib2.0-dev ubuntu-restricted-extras libgstreamer-plugins-base1.0-dev &&
python -m pip install --upgrade pip &&
pip install -r requirements.txt
CMD_BUILD: >
cd PySoar &&
pyinstaller --onefile --windowed main_pysoar.py &&
mv dist/main_pysoar dist/linux_pysoar
OUT_FILE_NAME: linux_pysoar
OUT_FILE_PATH: PySoar/dist/linux_pysoar

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install dependencies for ${{matrix.TARGET}}
run: ${{matrix.CMD_INSTALL}}
- name: Build with pyinstaller for ${{matrix.TARGET}}
run: ${{matrix.CMD_BUILD}}
- name: list files
Expand Down