From bfbf692cc0adaed7c3114afe4caf872eb19a7ab3 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Fri, 20 Jan 2023 09:57:52 +0300 Subject: [PATCH] Add iOS release workflow --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 980fbc5..6f86dc5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,6 +56,48 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ios: + name: iOS + + runs-on: macos-11 + + steps: + - name: Clone + uses: actions/checkout@v3 + + - name: Cache cmake build + uses: actions/cache@v3 + with: + path: build + key: ios-cmake-v1 + + - name: Configure + run: | + cmake \ + -B build \ + -D CMAKE_BUILD_TYPE=RelWithDebInfo \ + -D CMAKE_TOOLCHAIN_FILE=cmake/toolchain/ios.toolchain.cmake \ + -D ENABLE_BITCODE=0 \ + -D PLATFORM=OS64 \ + # EOL + + - name: Build + run: | + cmake \ + --build build \ + -j $(sysctl -n hw.physicalcpu) \ + --target package \ + # EOL + + - name: Upload + run: | + cd build + cp fallout2-ce.zip fallout2-ce-ios.ipa + gh release upload ${{ github.ref_name }} fallout2-ce-ios.ipa + rm fallout2-ce-ios.ipa + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + linux: name: Linux (${{ matrix.arch }})