1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- 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 py2exe
- - 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 py2exe
- 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
|