| 1 | name: Build workflow |
| 2 | |
| 3 | on: |
| 4 | workflow_call: |
| 5 | |
| 6 | env: |
| 7 | package_origin: gh |
| 8 | |
| 9 | jobs: |
| 10 | build-macos: |
| 11 | runs-on: macos-latest |
| 12 | name: Mac OS builder |
| 13 | steps: |
| 14 | - name: Configure base system |
| 15 | run: | |
| 16 | git config --global init.defaultBranch master |
| 17 | - name: Checkout repository code |
| 18 | uses: actions/checkout@v3 |
| 19 | with: |
| 20 | fetch-depth: 0 |
| 21 | - name: Compile repository code |
| 22 | id: compile |
| 23 | shell: bash |
| 24 | run: | |
| 25 | brew install qt@5 |
| 26 | make |
| 27 | mkdir derived/root |
| 28 | mv derived/openMSX_Debugger.app "derived/root/openMSX Debugger.app" |
| 29 | cd derived/root |
| 30 | tar cvfj ../../openmsx-debugger-macos-${{ env.package_origin }}.tbz "openMSX Debugger.app" |
| 31 | - name: Upload redistributable package for Mac OS |
| 32 | uses: actions/upload-artifact@v3 |
| 33 | with: |
| 34 | name: macos |
| 35 | path: | |
| 36 | openmsx-debugger-macos-${{ env.package_origin }}.tbz |
| 37 | if-no-files-found: error |
| 38 | retention-days: 3 |