-
Notifications
You must be signed in to change notification settings - Fork 14
84 lines (70 loc) · 2.14 KB
/
Copy pathbuild.yml
File metadata and controls
84 lines (70 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Build unsigned IPA
on:
push:
branches: ["**"]
tags: ["v*"]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
permissions:
contents: write
runs-on: xcode-27
steps:
- uses: actions/checkout@v7
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest
- name: Export DEVELOPER_DIR
run: echo "DEVELOPER_DIR=$(xcode-select -p)" >> "$GITHUB_ENV"
- name: Install tools
run: |
rustup target add aarch64-apple-ios aarch64-apple-ios-sim
brew install xcodegen
- name: Cache Rust build
uses: Swatinem/rust-cache@v2
with:
workspaces: rust
- name: Build Rust FFI xcframework
run: ./build-rust.sh
- name: Generate Xcode project
run: xcodegen generate
- name: Build (Release, unsigned)
run: |
xcodebuild \
-project StikPair.xcodeproj \
-scheme StikPair \
-configuration Release \
-sdk iphoneos \
-destination 'generic/platform=iOS' \
-derivedDataPath build/dd \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY="" \
CODE_SIGN_ENTITLEMENTS="" \
build
- name: Package unsigned IPA
run: |
set -euo pipefail
APP="build/dd/Build/Products/Release-iphoneos/StikPair.app"
rm -rf build/Payload StikPair.ipa
mkdir -p build/Payload
cp -R "$APP" build/Payload/
find build/Payload -name '.DS_Store' -delete
(cd build && zip -qr ../StikPair.ipa Payload)
ls -lh StikPair.ipa
- name: Upload IPA artifact
uses: actions/upload-artifact@v7
with:
name: StikPair-unsigned
path: StikPair.ipa
if-no-files-found: error
- name: Attach IPA to release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v3
with:
files: StikPair.ipa