-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (66 loc) · 2.59 KB
/
Copy pathrelease-ios-sideload.yml
File metadata and controls
77 lines (66 loc) · 2.59 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
name: "Release iOS sideload build"
on:
workflow_dispatch:
inputs:
version:
description: "Mostly just the version folder it will be uploaded to."
required: true
type: string
jobs:
build:
runs-on: macos-latest
env:
STYX_BASEURL: ${{ secrets.STYX_BASEURL }}
STYX_IMAGEURL: ${{ secrets.STYX_IMAGEURL }}
STYX_SITEURL: ${{ secrets.STYX_SITEURL }}
STYX_SECRET: ${{ secrets.STYX_SECRET }}
U2C_SCRIPT: https://raw.githubusercontent.com/9001/copyparty/refs/heads/hovudstraum/bin/u2c.py
steps:
- name: "Checkout"
uses: actions/checkout@v6
- name: "Setup JDK"
id: java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
cache: "gradle"
- name: "Setup Android"
uses: android-actions/setup-android@v4.0.1
- name: "Setup uv"
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
- name: "Select Xcode 26"
run: |
sudo xcode-select -s /Applications/Xcode_26.3.app/Contents/Developer
xcodebuild -version
xcrun --sdk iphoneos --show-sdk-version
- name: "Ensure CocoaPods is available"
run: |
if ! command -v pod >/dev/null 2>&1; then
sudo gem install cocoapods -N
fi
- name: "Build unsigned iOS IPA"
env:
JAVA_HOME: ${{ steps.java.outputs.path }}
GRADLE_OPTS: >-
-Dorg.gradle.workers.max=1
-Dorg.gradle.project.kotlin.native.jvmArgs=-Xmx5120m
-Dorg.gradle.project.kotlin.native.parallelThreads=1
OUTPUT_DIR: ${{ github.workspace }}/build/ios-sideload/${{ inputs.version }}
DERIVED_DATA_DIR: ${{ github.workspace }}/build/ios-derived-data/${{ inputs.version }}
run: |
chmod u+x ./gradlew
chmod u+x ./scripts/build-ios-unsigned-ipa.sh
./scripts/build-ios-unsigned-ipa.sh "${{ inputs.version }}"
- name: "Upload checksum file"
uses: actions/upload-artifact@v7
with:
name: ios-sideload-checksums-${{ inputs.version }}
path: build/ios-sideload/${{ inputs.version }}/checksums.sha384
- name: "Upload IPA to copyparty"
env:
COPYPARTY_PASS: ${{ secrets.COPYPARTY_PASS }}
COPYPARTY_STYX_ROOT: ${{ secrets.COPYPARTY_STYX_ROOT }}
run: |
set -euo pipefail
uv run -p 3.12 "${U2C_SCRIPT}" -a "${COPYPARTY_PASS}" "${COPYPARTY_STYX_ROOT}/builds-android/${{ inputs.version }}/ios" "./build/ios-sideload/${{ inputs.version }}/"