-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (38 loc) · 1.17 KB
/
build-mac-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build Test DMG
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
buildDMG:
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
ref: ${{ github.event.inputs.commitHash || github.sha }}
- 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