Use v2 of mulle-sde/github-ci #9
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: HomebrewCI | |
on: [push,workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ macos-latest, macos-14 ] | |
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/mulle-sde-developer | |
- name: Install release | |
if: ${{ env.MULLE_HOSTNAME != 'ci-prerelease' }} | |
run: | | |
brew install mulle-kybernetik/software/mulle-sde-developer | |
- name: C Executable | |
run: | | |
mulle-sde extension show && | |
mulle-sde init -d exe -m mulle-sde/c-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" ) |