sample-ios (manual) #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |