Movement Powers tab updates / additions: #102
Workflow file for this run
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 & Release | |
on: | |
push: | |
tags: | |
- 'v*' # Push events matching v*, i.e. v1.0, v20.15.10 | |
jobs: | |
build: | |
name: Build & Release | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: windows-latest | |
CMD_BUILD: python tools/build.py | |
CMD_VERIFY: dir dist/BindControl | |
CMD_PREZIP: echo | |
FILE_NAME: BindControl-${{ github.ref_name }}_windows.zip | |
- os: macos-14 | |
CMD_BUILD: python tools/build.py | |
CMD_VERIFY: ls -la dist/BindControl.app | |
CMD_PREZIP: rm -rf dist/BindControl | |
FILE_NAME: BindControl-${{ github.ref_name }}_macos.zip | |
- os: ubuntu-latest | |
CMD_BUILD: python tools/build.py | |
CMD_VERIFY: ls -la dist/BindControl | |
FILE_NAME: BindControl-${{ github.ref_name }}_linux.zip | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Cache pip dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install Tools & Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04 wxPython --user | |
pip install pyinstaller==6.7.0 -r requirements.txt | |
- name: Create Executable | |
run: | | |
echo "${{ github.ref_name }}" > version.txt | |
python tools/zip_icons.py | |
${{ matrix.CMD_BUILD }} | |
- name: Create Zip Archive | |
uses: thedoctor0/[email protected] | |
with: | |
type: 'zip' | |
directory: './dist' | |
command: '${{ matrix.CMD_PREZIP }}' | |
filename: '${{ matrix.FILE_NAME }}' | |
- name: Verify Files | |
run: | | |
${{ matrix.CMD_VERIFY }} | |
- name: Upload Release Asset | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: dist/${{ matrix.FILE_NAME }} | |
asset_name: ${{ matrix.FILE_NAME }} | |
tag: ${{ github.ref }} | |
overwrite: true | |
release_name: "BindControl ${{ github.ref_name }}" | |
body: "${{ github.event.head_commit.message }}" |