Skip to content

Batch Renovate updates and pin Gradle to 9.6.x #772

Batch Renovate updates and pin Gradle to 9.6.x

Batch Renovate updates and pin Gradle to 9.6.x #772

Workflow file for this run

name: iOS CI
on:
pull_request:
push:
branches: [ main ]
# Weekly run keeps main's caches from being evicted (7 days unused) and catches runner/Xcode image changes
schedule:
- cron: '0 6 * * 1'
workflow_dispatch:
# Cancel superseded runs for the same PR/branch
concurrency:
group: ios-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
runs-on: macos-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v6
with:
distribution: 'zulu'
java-version: 24
- uses: gradle/actions/setup-gradle@v6
# Restore on every run, but only save from main so PR runs don't fill the repo's cache quota
- name: Restore Kotlin/Native (konan) cache
id: konan-cache
uses: actions/cache/restore@v6
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('**/libs.versions.toml') }}
restore-keys: |
${{ runner.os }}-konan-
- name: Set Xcode Version 26.3
shell: bash
run: |
xcodes select 26.3
- name: Build iOS app
run: xcodebuild -allowProvisioningUpdates -workspace iosApp/iosApp.xcodeproj/project.xcworkspace -configuration Debug -scheme iosApp -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' ARCHS=arm64
- name: Save Kotlin/Native (konan) cache
if: github.ref == 'refs/heads/main' && steps.konan-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v6
with:
path: ~/.konan
key: ${{ steps.konan-cache.outputs.cache-primary-key }}