Skip to content

Use Docker image for Linux builds #253

Use Docker image for Linux builds

Use Docker image for Linux builds #253

Workflow file for this run

name: macOS Build
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
build-macos-arm64:
runs-on: macos-14
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- uses: actions/cache@v4
with:
path: |
~/.transgui_sdk/lazarus
~/.transgui_sdk/fpc-3.2.4-rc1
key: macos-arm64-fpc-lazarus
- run: .github/build_macos.sh
- uses: actions/upload-artifact@v4
with:
name: TransGUI macOS arm64
path: transgui_ppca64
if-no-files-found: error
build-macos-x64:
runs-on: macos-12
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- uses: actions/cache@v4
with:
path: |
~/.transgui_sdk/lazarus
~/.transgui_sdk/fpc-3.2.4-rc1
key: macos-x64-fpc-lazarus
- run: .github/build_macos.sh
- uses: actions/upload-artifact@v4
with:
name: TransGUI macOS x64
path: transgui_ppcx64
if-no-files-found: error
package-macos:
needs: [build-macos-arm64, build-macos-x64]
runs-on: macos-12
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
.github
lang
# no cache needed here as we don't compile anything
- uses: actions/download-artifact@v4
with:
name: TransGUI macOS arm64
path: transgui_ppca64
- uses: actions/download-artifact@v4
with:
name: TransGUI macOS x64
path: transgui_ppcx64
- run: .github/package_macos.sh
# keeping these around would just be confusing
- uses: geekyeggo/delete-artifact@v5
with:
name: TransGUI macOS arm64
- uses: geekyeggo/delete-artifact@v5
with:
name: TransGUI macOS x64
- uses: actions/upload-artifact@v4
with:
name: TransGUI macOS Universal Binary
path: Release/transgui.dmg
if-no-files-found: error