Skip to content

Commit

Permalink
CI: cache the ~/.konan directory
Browse files Browse the repository at this point in the history
So that all the Kotlin Native tools don't redownload every time.
  • Loading branch information
ctrueden committed Feb 2, 2024
1 parent 4aa833c commit 8151e58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ jobs:
java-version: '21'
cache: 'gradle'

- name: Cache Kotlin Native
id: cache-konan
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ runner.os }}-build-konan-${{ hashFiles('*gradle.*') }}
restore-keys: |
${{ runner.os }}-build-konan-
- name: Build
run: make compile-all

Expand Down
2 changes: 1 addition & 1 deletion bin/compile-configurator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ cd "$(dirname "$0")/.."
echo
echo -e "\033[1;33m[compile-configurator]\033[0m"

./gradlew linkReleaseExecutable
./gradlew --no-daemon linkReleaseExecutable

0 comments on commit 8151e58

Please sign in to comment.