Skip to content

Commit

Permalink
feat: upgraded ios release
Browse files Browse the repository at this point in the history
  • Loading branch information
Archdoog committed Oct 15, 2024
1 parent 26aad3f commit d8389c3
Showing 1 changed file with 54 additions and 5 deletions.
59 changes: 54 additions & 5 deletions .github/workflows/ios-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: iOS
name: iOS Release

on:
push:
Expand All @@ -16,18 +16,67 @@ on:
- "major"

jobs:
build-release:
build:
runs-on: macos-14
timeout-minutes: 120
strategy:
matrix:
arch: ["arm64-ios", "arm64-ios-simulator", "x64-ios-simulator"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-ios-build-${{ matrix.arch }}
cancel-in-progress: true

steps:
- name: Checkout Valhalla
uses: actions/checkout@v4
with:
submodules: "recursive"

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "14.3.1"

- name: Setup VCPKG
run: |
git clone https://github.com/microsoft/vcpkg && git -C vcpkg checkout 2024.09.23
./vcpkg/bootstrap-vcpkg.sh
export VCPKG_ROOT=`pwd`/vcpkg
- name: Build for iOS & iOS Simulator
run: ./build.sh ios clean
run: ./build.sh --ios ${{ matrix.arch }}

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.arch }}
path: |
build/apple/${{ matrix.arch }}/install
create-xcframework-release:
needs: build
runs-on: macos-14
steps:
- name: Checkout Valhalla
uses: actions/checkout@v4

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "14.3.1"

- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: build/apple

- name: Move artifacts to correct locations
run: |
for arch in arm64-ios arm64-ios-simulator x64-ios-simulator; do
mkdir -p build/apple/$arch/install
mv build/apple/$arch/* build/apple/$arch/install/ || true
done
- name: Create XCFramework
run: |
./scripts/create_xcframework.sh
- name: Zip the xcframework
run: |
Expand All @@ -45,7 +94,7 @@ jobs:
draft-release:
runs-on: macos-14
needs: build-release
needs: create-xcframework-release
outputs:
version: ${{ steps.version.outputs.version }}
release_id: ${{ steps.release.outputs.id }}
Expand Down

0 comments on commit d8389c3

Please sign in to comment.