Skip to content

Commit 7b86654

Browse files
Cache codenameone-tools in CI pipelines (#4382)
Sets TMPDIR to ${{ runner.temp }} in Android and iOS workflows to align download locations with the cache path. Adds caching for codenameone-tools in the iOS workflow. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent c7ce914 commit 7b86654

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/scripts-android.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ jobs:
9595
GH_TOKEN: ${{ secrets.CN1SS_GH_TOKEN }}
9696
steps:
9797
- uses: actions/checkout@v4
98+
- name: Set TMPDIR
99+
run: echo "TMPDIR=${{ runner.temp }}" >> $GITHUB_ENV
98100
- name: Free Disk Space
99101
if: matrix.id != 'default'
100102
run: |

.github/workflows/scripts-ios.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ jobs:
8585
set -euo pipefail
8686
echo "hash=$(shasum -a 256 scripts/setup-workspace.sh | awk '{print $1}')" >> "$GITHUB_OUTPUT"
8787
88+
- name: Set TMPDIR
89+
run: echo "TMPDIR=${{ runner.temp }}" >> $GITHUB_ENV
90+
91+
- name: Cache codenameone-tools
92+
uses: actions/cache@v4
93+
with:
94+
path: ${{ runner.temp }}/codenameone-tools
95+
key: ${{ runner.os }}-cn1-tools-${{ steps.setup_hash.outputs.hash }}
96+
restore-keys: |
97+
${{ runner.os }}-cn1-tools-
98+
8899
- name: Restore cn1-binaries cache
89100
uses: actions/cache@v4
90101
with:

0 commit comments

Comments
 (0)