DMG Workflow macos-15 #8
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 Test DMG | |
on: | |
workflow_dispatch: | |
inputs: | |
tags: | |
description: 'Test Build DMG' | |
required: false | |
type: boolean | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: macos-14 # see available: https://github.com/actions/runner-images?tab=readme-ov-file#available-images | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Fetch all history for all branches and tags | |
- name: Run build script | |
run: tools/build-mac/make_osx.sh | |
- 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 | |
path: dist/*.dmg |