python 3.10, new version 1.0.7 #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Build' | |
on: | |
push: | |
jobs: | |
build: | |
name: Build Executables | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- os: ubuntu-latest | |
BUILD_CMD: pyinstaller collectmeterdigits.spec | |
POST_BUILD_CMD: > | |
cd dist/ && | |
ls -Rls && | |
zip -r9 collectmeterdigits-linux.zip collectmeterdigits | |
OUT_FILE_NAME: collectmeterdigits-linux.zip | |
ASSET_MIME: application/zip | |
- os: macos-latest | |
BUILD_CMD: pyinstaller collectmeterdigits.spec | |
POST_BUILD_CMD: > | |
cd dist/ && | |
ls -Rls && | |
zip -r9 collectmeterdigits-macos.zip collectmeterdigits | |
OUT_FILE_NAME: collectmeterdigits-macos.zip | |
ASSET_MIME: application/zip | |
- os: windows-latest | |
BUILD_CMD: pyinstaller collectmeterdigits.spec | |
POST_BUILD_CMD: >+ | |
Compress-Archive -Path dist/* -Destination dist/collectmeterdigits-windows.zip | |
OUT_FILE_NAME: collectmeterdigits-windows.zip | |
ASSET_MIME: application/zip | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies for ${{ matrix.os }} | |
run: | | |
python -m pip install --upgrade pip wheel setuptools | |
pip install -r requirements.txt | |
pip install pyinstaller | |
- name: Pre-Build for ${{ matrix.os }} | |
if: ${{ matrix.PRE_BUILD_CMD != '' }} | |
run: ${{ matrix.PRE_BUILD_CMD }} | |
- name: Build with pyinstaller for ${{ matrix.os }} | |
run: ${{ matrix.BUILD_CMD }} | |
- name: Post-Build for ${{ matrix.os }} | |
if: ${{ matrix.POST_BUILD_CMD != '' }} | |
run: ${{ matrix.POST_BUILD_CMD }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: './dist/${{matrix.OUT_FILE_NAME}}' | |
- name: Upload created build on action | |
uses: actions/upload-artifact@v3 | |
with: | |
path: './dist/${{matrix.OUT_FILE_NAME}}' | |
name: '${{runner.os}}-${{matrix.OUT_FILE_NAME}}' | |