Add support for Darkmode Kaluga Colors #317
Workflow file for this run
This file contains 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: iOS tests | |
on: pull_request | |
env: | |
GRADLE_OPTS: "-Dorg.gradle.jvmargs=\"-Xmx8G -XX:MaxMetaspaceSize=512m -Dorg.gradle.daemon=false -Dkotlin.incremental=false\" -Dorg.gradle.daemon=false -Dkotlin.incremental=false -Dkotlin.daemon.jvm.options=-Xmx8G,-XX:MaxMetaspaceSize=512m,-Dorg.gradle.daemon=false,-Dkotlin.incremental=false" | |
JAVA_OPTS: "-Xmx8G -XX:MaxMetaspaceSize=512m -Dorg.gradle.daemon=false -Dkotlin.incremental=false" | |
jobs: | |
build: | |
uses: ./.github/workflows/setup_macos.yaml | |
with: | |
gradleTask: compileKotlinIosSimulatorArm64 | |
lint: | |
needs: build | |
runs-on: macos-14 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup tools and cache for workspace | |
uses: ./.github/workflows/setup_tools_macos/ | |
with: | |
kotlinVersion: ${{ needs.build.outputs.kotlinVersion }} | |
arch: ${{ runner.arch == 'X86' && 'x86' || runner.arch == 'X64' && 'x86_64' || runner.arch == 'ARM' && 'arm32' || 'arm64' }} | |
- name: ktLint | |
run: ./gradlew lintKotlin | |
- name: ktLint report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ktLint report | |
path: build/reports/ktlint | |
if: ${{ failure() }} | |
test: | |
needs: build | |
runs-on: macos-14 | |
strategy: | |
fail-fast: false | |
matrix: | |
module: ${{ fromJSON(needs.build.outputs.projects) }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Setup tools and cache for workspace | |
uses: ./.github/workflows/setup_tools_macos/ | |
with: | |
kotlinVersion: ${{ needs.build.outputs.kotlinVersion }} | |
arch: ${{ runner.arch == 'X86' && 'x86' || runner.arch == 'X64' && 'x86_64' || runner.arch == 'ARM' && 'arm32' || 'arm64' }} | |
- name: run iOS tests | |
run: ./gradlew :${{ matrix.module }}:ios${{ runner.arch == 'X86' && 'X86' || runner.arch == 'X64' && 'x86_64' || runner.arch == 'ARM' && 'SimulatorArm32' || 'SimulatorArm64' }}Test | |
- name: Upload iOS test artifact | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: ${{ matrix.module}} iOS Test Report HTML | |
path: ${{ format('**{0}/build/reports/tests/ios{1}Test', matrix.module, runner.arch == 'X86' && 'X86' || runner.arch == 'X64' && 'x86_64' || runner.arch == 'ARM' && 'SimulatorArm32' || 'SimulatorArm64') }} |