ref: 8d3fade26a10b6fe03f543ded533890c1655c0df
dir: /.github/workflows/build-macos-intel.yml/
name: m8c macos intel build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build-macos:
runs-on: macos-13
steps:
- name: 'Install dependencies'
run: brew update && brew install cmake pkg-config sdl3 libserialport
- name: 'Checkout'
uses: actions/checkout@v4
- name: Set current date as env variable
run: echo "NOW=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: 'Build m8c'
id: buildApplication
continue-on-error: true
run: |
mkdir -p build_x86_64 && cd build_x86_64 && cmake .. -DCMAKE_BUILD_TYPE=Release && cpack -V
- name: 'View debug log if compilation fails'
if: failure() && steps.buildApplication.outcome == 'failure'
run: cat /Users/runner/work/m8c/m8c/build_x86_64/_CPack_Packages/Darwin/DragNDrop/PreinstallOutput.log
- name: 'Build package'
run: |
mv build_x86_64/m8c-0.1.1-Darwin.dmg m8c-${{ env.NOW }}-macos-intel.dmg
- name: 'Upload artifact'
uses: actions/upload-artifact@v4
with:
name: m8c-${{ env.NOW }}-macos-intel
path: |
m8c-${{ env.NOW }}-macos-intel.dmg