Skip to content

Commit 0c09ed1

Browse files
committed
Update action for nightly-main and official Swift SDK
1 parent 4f6565f commit 0c09ed1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ runs:
149149
fatal "Unsupported platform: ${RUNNER_OS}"
150150
fi
151151
152+
echo "runner-os=${RUNNER_OS}" >> $GITHUB_OUTPUT
153+
152154
# RUNNER_ARCH The architecture of the runner executing the job. Possible values are X86, X64, ARM, or ARM64.
153155
if [ ${RUNNER_ARCH} == 'X64' ]; then
154156
echo "android-sdk-arch=x86_64" >> $GITHUB_OUTPUT
@@ -576,14 +578,14 @@ runs:
576578
chmod +x ${SCRIPT_FILE}
577579
578580
- name: Setup Android Emulator Cache
579-
if: ${{ false && inputs.run-tests == 'true' && inputs.build-tests == 'true' && inputs.build-package == 'true' }}
581+
if: ${{ inputs.run-tests == 'true' && inputs.build-tests == 'true' && inputs.build-package == 'true' }}
580582
uses: actions/cache@v4
581583
id: avd-cache
582584
with:
583585
path: |
584586
~/.android/avd/*
585587
~/.android/adb*
586-
key: 'avd-${{ inputs.android-profile }}_${{ inputs.android-channel }}_${{ inputs.android-target }}_${{ inputs.android-api-level }}-${{ steps.setup.outputs.android-emulator-arch }}'
588+
key: 'avd-${{ inputs.android-profile }}_${{ inputs.android-channel }}_${{ inputs.android-target }}_${{ inputs.android-api-level }}-${{ steps.setup.outputs.runner-os }}-${{ steps.setup.outputs.android-emulator-arch }}'
587589

588590
- name: Create Android Emulator Cache
589591
if: ${{ inputs.run-tests == 'true' && inputs.build-tests == 'true' && inputs.build-package == 'true' && steps.avd-cache.outputs.cache-hit != 'true' }}

0 commit comments

Comments
 (0)