diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e1f56ba..c2bf641 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 && @@ -23,6 +26,9 @@ 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 && @@ -30,16 +36,27 @@ jobs: 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