-
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (60 loc) · 2.02 KB
/
sample-ios.yml
File metadata and controls
74 lines (60 loc) · 2.02 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
name: sample-ios (manual)
on:
workflow_dispatch:
permissions:
contents: read
jobs:
build_sample_ios:
runs-on: macos-15
env:
DOTNET_MULTILEVEL_LOOKUP: 0
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: true
DOTNET_CLI_WORKLOAD_UPDATE_NOTIFICATION_LEVEL: Disable
steps:
- uses: actions/checkout@v4
- name: Setup Xcode 26.0
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "26.0"
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"
- name: Pin workload update mode (manifests)
shell: bash
run: |
dotnet workload config --update-mode manifests
dotnet workload config --update-mode
- name: Purge incompatible iOS packs (cache defense)
shell: bash
run: |
set -euo pipefail
PACKS_DIR="$HOME/.dotnet/packs"
for v in 26.2; do
if [ -d "$PACKS_DIR" ] && compgen -G "$PACKS_DIR/Microsoft.iOS.*_${v}*" > /dev/null; then
echo "Removing cached iOS ${v} packs from $PACKS_DIR"
rm -rf "$PACKS_DIR"/Microsoft.iOS.*_${v}*
fi
done
- name: Install iOS workload
shell: bash
run: |
dotnet workload install ios --skip-manifest-update
- name: Diagnostics (.NET + workloads)
shell: bash
run: |
dotnet --info
dotnet workload list
- name: Build iOS wrapper
run: |
bash src/Kapusch.FacebookApisForiOSComponents/Native/iOS/build.sh
- name: Collect Facebook xcframeworks
run: |
bash src/Kapusch.FacebookApisForiOSComponents/Native/iOS/collect-facebook-xcframeworks.sh
- name: Build iOS sample (simulator, no signing)
run: |
dotnet build samples/Kapusch.Facebook.iOS.Sample/Kapusch.Facebook.iOS.Sample.csproj \
-c Debug \
-p:RuntimeIdentifier=iossimulator-arm64 \
-p:EnableCodeSigning=false