-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.51 KB
/
homebrew-ci.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
name: HomebrewCI
on: [push,workflow_dispatch]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest ]
steps:
- name: Set MULLE_HOSTNAME
run: |
name="${GITHUB_REF##*/}"
MULLE_HOSTNAME="${MULLE_HOSTNAME:-ci-${name##*-}}"
echo "MULLE_HOSTNAME=${MULLE_HOSTNAME}" >> $GITHUB_ENV
- name: Dump Environment
run: env | sort
- name: Install prerelease
if: ${{ env.MULLE_HOSTNAME == 'ci-prerelease' }}
run: |
brew install mulle-kybernetik/prerelease/foundation-developer
- name: Install release
if: ${{ env.MULLE_HOSTNAME != 'ci-prerelease' }}
run: |
brew install mulle-kybernetik/software/foundation-developer
- name: Foundation Executable
run: |
mulle-sde -DMULLE_SDE_EXTENSION_BASE_PATH="${PWD}/src" extension show &&
mulle-sde -DMULLE_SDE_EXTENSION_BASE_PATH="${PWD}/src" init -d exe -m foundation/objc-developer executable &&
cd exe &&
echo "Adding environment-host-ci-prerelease file from Foundation/test" >&2 &&
curl -L --output .mulle/etc/env/environment-host-ci-prerelease.sh "https://raw.githubusercontent.com/MulleFoundation/Foundation/prerelease/test/.mulle/etc/env/environment-host-ci-prerelease.sh" >&2 &&
mulle-sde craft --release &&
[ -x "./kitchen/Release/exe" -o "./kitchen/exe" ] &&
( [ ! -x "./kitchen/Release/exe" ] || "./kitchen/Release/exe" ) &&
( [ ! -x "./kitchen/exe" ] || "./kitchen/exe" )