File tree Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 3636 - name : Install JDK
3737 run : " bash -xc 'JDK_VENDOR=${{ matrix.jdk_vendor }} ./docker/install_jdk.sh'"
3838 # TODO: not using setup-java since incompatible with the swiftlang/swift base image
39- # - uses: actions/setup-java@v4
40- # with:
41- # distribution: 'zulu'
42- # java-version: '22'
43- # cache: 'gradle'
4439 - name : Install Nightly Swift
4540 run : " bash -xc './docker/install_untested_nightly_swift.sh'"
46- # Cache .m2/repository
4741 - name : Cache local Gradle repository
4842 uses : actions/cache@v4
4943 continue-on-error : true
5347 restore-keys : |
5448 ${{ runner.os }}-gradle-cache
5549 ${{ runner.os }}-gradle-
50+ - name : Cache local SwiftPM repository
51+ uses : actions/cache@v4
52+ continue-on-error : true
53+ with :
54+ path : ~/.gradle/cache
55+ key : ${{ runner.os }}-swiftpm-cache-${{ hashFiles('**/Package.swift') }}
56+ restore-keys : |
57+ ${{ runner.os }}-swiftpm-cache
58+ ${{ runner.os }}-swiftpm-
5659 - name : Gradle build
5760 run : ./gradlew build --info --no-daemon
5861
7780 run : " bash -xc 'JDK_VENDOR=${{ matrix.jdk_vendor }} ./docker/install_jdk.sh'"
7881 - name : Install Nightly Swift
7982 run : " bash -xc './docker/install_untested_nightly_swift.sh'"
83+ - name : Cache local SwiftPM repository
84+ uses : actions/cache@v4
85+ continue-on-error : true
86+ with :
87+ path : ~/.gradle/cache
88+ key : ${{ runner.os }}-swiftpm-cache-${{ hashFiles('**/Package.swift') }}
89+ restore-keys : |
90+ ${{ runner.os }}-swiftpm-cache
91+ ${{ runner.os }}-swiftpm-
8092 - name : Generate sources (make) (Temporary)
8193 # TODO: this should be triggered by the respective builds
8294 run : " make jextract-run"
Original file line number Diff line number Diff line change @@ -31,8 +31,11 @@ UNTESTED_TOOLCHAIN_FILENAME=$(echo "$UNTESTED_TOOLCHAIN_URL" | awk '
3131 }
3232 {print FILENAME, basename(FILENAME)}' )
3333
34+ echo " Download toolchain: $UNTESTED_TOOLCHAIN_URL "
35+
3436cd /
35- curl " $UNTESTED_TOOLCHAIN_URL " > " $UNTESTED_TOOLCHAIN_FILENAME "
37+ curl -s " $UNTESTED_TOOLCHAIN_URL " > " $UNTESTED_TOOLCHAIN_FILENAME "
3638
39+ echo " Extract toolchain: $UNTESTED_TOOLCHAIN_FILENAME "
3740tar xzf " $UNTESTED_TOOLCHAIN_FILENAME "
3841swift -version
You can’t perform that action at this time.
0 commit comments