Skip to content

Commit 268f633

Browse files
ci: manually download macOS dependencies
1 parent f31dea0 commit 268f633

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,20 @@ jobs:
130130
env:
131131
CMAKE_INSTALL_LIBDIR: lib/${{matrix.lib_platform}}/${{matrix.lib_arch}}
132132
- name: Cache Kotlin/Native dependencies
133+
id: cache-dependencies
133134
uses: actions/cache@v4
134135
if: matrix.platform != 'JVM' && matrix.platform != 'Android'
135136
with:
136137
path: ${{runner.tool_cache}}/konan/dependencies
137138
key: konan-${{runner.os}}-dependencies
139+
- name: Download Kotlin/Native dependencies
140+
if: matrix.platform == 'macOS/iOS' && steps.cache-dependencies.outputs.cache-hit != 'true'
141+
run: |-
142+
mkdir -p "$RUNNER_TOOL_CACHE/konan/dependencies"
143+
curl -LSs https://download-cdn.jetbrains.com/kotlin/native/$DEP.tar.gz | \
144+
tar -xzf - -C "$RUNNER_TOOL_CACHE/konan/dependencies"
145+
env:
146+
DEP: apple-llvm-20200714-macos-aarch64-essentials
138147
- name: Run tests
139148
run: ./gradlew --no-daemon ${{matrix.targets}}
140149
env:

0 commit comments

Comments
 (0)