name: Build Distribution Packages on: [push] jobs: build_mac: runs-on: macos-latest steps: - name: Checkout repository uses: actions/checkout@v2 - name: Install Python Environment uses: actions/setup-python@v2 with: python-version: 3.9 - name: Install dependencies run: | python -m pip install --upgrade pip pip install PyQt5 pip install py2app - name: Run Mac build run: | ./build_mac.sh - name: Archive build result artifacts uses: actions/upload-artifact@v2 with: name: octotray_mac path: | ${{ github.workspace }}/build/dist/OctoTray_Mac.zip build_windows: runs-on: windows-latest steps: - name: Checkout repository uses: actions/checkout@v2 - name: Install Python Environment uses: actions/setup-python@v2 with: python-version: 3.7 - name: Install dependencies run: | python -m pip install --upgrade pip pip install PyQt5 pip install pyinstaller shell: bash - name: Run Windows build run: | ./build_win.sh shell: bash - name: Create archive of build results run: | powershell Compress-Archive build/dist/win build/dist/OctoTray_Win.zip - name: Archive build result artifacts uses: actions/upload-artifact@v2 with: name: octotray_win path: | ${{ github.workspace }}/build/dist/OctoTray_Win.zip build_linux: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v2 - name: Install Python Environment uses: actions/setup-python@v2 with: python-version: 3.8 - name: Install dependencies run: | python -m pip install --upgrade pip pip install PyQt5 pip install pyinstaller - name: Run Linux build run: | ./build_linux.sh - name: Archive build result artifacts uses: actions/upload-artifact@v2 with: name: octotray_linux path: | ${{ github.workspace }}/build/dist/OctoTray_Linux.zip