Skip to content

Build MacOsX matrix

Build MacOsX matrix #8

Workflow file for this run

name: Build MacOsX matrix
on:
workflow_dispatch:
inputs:
commitHash:
description: 'Enter the commit hash to build (leave empty to use the default branch or the branch that triggered the workflow)'
required: false
type: string
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-14, macos-13] # see available: https://github.com/actions/runner-images?tab=readme-ov-file#available-images
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches and tags
ref: ${{ github.event.inputs.commitHash || github.sha }}
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run build script
run: poetry run python tools/build.py --targets mac --commit None
- name: Check for DMG file
run: |
if [ -z "$(find dist -type f -name '*.dmg')" ]; then
echo "dmg file is missing"
exit 1
fi
- name: Upload DMG Files from dist/
uses: actions/upload-artifact@v4
with:
name: dmgs-${{ matrix.os }}
path: dist/*.dmg