name: Build TNC #https://data-dive.com/multi-os-deployment-in-cloud-using-pyinstaller-and-github-actions on: push: # tags: # - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 # Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the main branch push: branches: [ main ] pull_request: branches: [ main ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: build: name: Build packages needs: createrelease runs-on: ${{ matrix.os }} strategy: matrix: include: - os: macos-latest TARGET: macos CMD_BUILD: > pyinstaller -F -n codec2-FreeDATA-TNC daemon.py && cd dist/ && zip -r9 codec2-FreeDATA-TNC codec2-FreeDATA-TNC.app/ OUT_FILE_NAME: clipster.zip ASSET_MIME: application/zip - os: windows-latest TARGET: windows CMD_BUILD: pyinstaller -F -w -n codec2-FreeDATA-TNC daemon.py OUT_FILE_NAME: codec2-FreeDATA-TNC.exe ASSET_MIME: application/vnd.microsoft.portable-executable steps: - uses: actions/checkout@v2 - name: Set up Python 3.9 uses: actions/setup-python@v2 with: python-version: 3.9 - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Build with pyinstaller for ${{matrix.TARGET}} run: ${{matrix.CMD_BUILD}}