From 911ec9f97b23d078be4505169ab75efbee0229d4 Mon Sep 17 00:00:00 2001 From: adam-bloom Date: Sat, 13 Mar 2021 21:45:58 -0700 Subject: [PATCH] new CI run for macOS portable app bundle --- .github/workflows/ci.yml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 854488efb8..4fb7b58e81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -173,7 +173,36 @@ jobs: uses: actions/upload-artifact@v2-preview with: name: "OpenRCT2-macOS-cmake" - path: artifacts + path: artifacts/OpenRCT2-MacOS-x64-cmake.tar.gz + macos-cmake-portable: + name: macOS (x64, portable) using CMake + runs-on: macos-latest + needs: [check-code-formatting] + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: ccache + uses: hendrikmuhs/ccache-action@v1 + with: + key: macos + - name: Build OpenRCT2 + run: | + brew install ninja + . scripts/setenv -q && build -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_SHARED_LIBS=on -DMACOS_BUNDLE=on + - name: Build artifacts + shell: bash + run: | + . scripts/setenv + mkdir -p artifacts + mv bin/OpenRCT2.app artifacts + echo -e "\033[0;36mCompressing OpenRCT2.app...\033[0m" + cd artifacts + zip -rq openrct2-macos-cmake-app.zip OpenRCT2.app + - name: Upload artifacts (CI) + uses: actions/upload-artifact@v2-preview + with: + name: "OpenRCT2-macOS-cmake-app" + path: artifacts/openrct2-macos-cmake-app.zip linux-portable: name: Linux (x64, portable)