File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -42,22 +42,26 @@ jobs:
4242 uses : actions/cache@v4
4343 continue-on-error : true
4444 with :
45- path : ~/.gradle/caches
46- key : ${{ runner.os }}-gradle-cache-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('**/build.gradle.kts') }}
45+ path : ~/.gradle/caches/
46+ key : ${{ runner.os }}-gradle-cache-${{ hashFiles('**/build.gradle') }}
4747 restore-keys : |
4848 ${{ runner.os }}-gradle-cache
4949 ${{ runner.os }}-gradle-
5050 - name : Cache local SwiftPM repository
5151 uses : actions/cache@v4
5252 continue-on-error : true
5353 with :
54- path : ~/.swiftpm/cache
54+ path : ~/.build/checkouts
5555 key : ${{ runner.os }}-swiftpm-cache-${{ hashFiles('Package.swift') }}
5656 restore-keys : |
5757 ${{ runner.os }}-swiftpm-cache
5858 ${{ runner.os }}-swiftpm-
5959 - name : Gradle build
60- run : ./gradlew build --info --no-daemon
60+ run : ./gradlew update --info --no-daemon
61+ - name : List files for debugging
62+ run : pwd && find $(pwd)
63+ - name : List home files for debugging
64+ run : find ~/
6165
6266 test-swift :
6367 name : Swift tests (swift:${{ matrix.swift_version }} jdk:${{matrix.jdk_vendor}} os:${{ matrix.os_version }})
8488 uses : actions/cache@v4
8589 continue-on-error : true
8690 with :
87- path : ~/.gradle/cache
91+ path : ~/.build/checkouts
8892 key : ${{ runner.os }}-swiftpm-cache-${{ hashFiles('Package.swift') }}
8993 restore-keys : |
9094 ${{ runner.os }}-swiftpm-cache
Original file line number Diff line number Diff line change @@ -24,18 +24,15 @@ if [[ "$(grep "22.04" /etc/lsb-release)" = "" ]]; then
2424fi
2525
2626UNTESTED_TOOLCHAIN_URL=$( curl -s $SWIFT_UNTESTED_TOOLCHAIN_JOB_URL | grep ' Toolchain: ' | sed ' s/Toolchain: //g' )
27- UNTESTED_TOOLCHAIN_FILENAME=$( echo " $UNTESTED_TOOLCHAIN_URL " | awk '
28- function basename(file) {
29- sub(".*/", "", file)
30- return file
31- }
32- {print FILENAME, basename(FILENAME)}' )
27+ UNTESTED_TOOLCHAIN_FILENAME=$" toolchain.tar.gz"
3328
3429echo " Download toolchain: $UNTESTED_TOOLCHAIN_URL "
3530
3631cd /
3732curl -s " $UNTESTED_TOOLCHAIN_URL " > " $UNTESTED_TOOLCHAIN_FILENAME "
3833
34+ swift -version
35+
3936echo " Extract toolchain: $UNTESTED_TOOLCHAIN_FILENAME "
4037tar xzf " $UNTESTED_TOOLCHAIN_FILENAME "
41- swift -version
38+ swift -version
You can’t perform that action at this time.
0 commit comments