Skip to content

Commit d5cf056

Browse files
committed
Use Ubuntu version variable in more places on CI
1 parent 08aa30c commit d5cf056

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/sdks.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ jobs:
7373
TOOLCHAIN=${PWD}/usr
7474
popd
7575
elif ${{ startsWith(matrix.os, 'ubuntu') }}; then
76-
tar xf ~/$SWIFT_TAG-ubuntu24.04.tar.gz
77-
TOOLCHAIN=${PWD}/$SWIFT_TAG-ubuntu24.04/usr
76+
SWIFT_TOOLS=$SWIFT_TAG-$(echo ${{ matrix.os }} | tr -d - )
77+
tar xf ~/$SWIFT_TOOLS.tar.gz
78+
TOOLCHAIN=${PWD}/$SWIFT_TOOLS/usr
7879
fi
7980
8081
echo "TOOLCHAIN=${TOOLCHAIN}" >> $GITHUB_ENV
@@ -500,7 +501,7 @@ jobs:
500501
501502
# need to free up some space or else the emulator fails to launch:
502503
# ERROR | Not enough space to create userdata partition. Available: 6086.191406 MB at /home/runner/.android/avd/../avd/test.avd, need 7372.800000 MB.
503-
rm -rf ${{ steps.version.outputs.tag }}-ubuntu24.04/ */.build
504+
rm -rf ${{ steps.version.outputs.tag }}-$(echo ${{ matrix.os }} | tr -d - )/ */.build
504505
505506
chmod +x ~/test-toolchain.sh
506507

0 commit comments

Comments
 (0)