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 36
36
- name : Install JDK
37
37
run : " bash -xc 'JDK_VENDOR=${{ matrix.jdk_vendor }} ./docker/install_jdk.sh'"
38
38
# 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'
44
39
- name : Install Nightly Swift
45
40
run : " bash -xc './docker/install_untested_nightly_swift.sh'"
46
- # Cache .m2/repository
47
41
- name : Cache local Gradle repository
48
42
uses : actions/cache@v4
49
43
continue-on-error : true
53
47
restore-keys : |
54
48
${{ runner.os }}-gradle-cache
55
49
${{ runner.os }}-gradle-
50
+ - name : Cache local SwiftPM repository
51
+ uses : actions/cache@v4
52
+ continue-on-error : true
53
+ with :
54
+ path : ~/.swiftpm/cache
55
+ key : ${{ runner.os }}-swiftpm-cache-${{ hashFiles('Package.swift') }}
56
+ restore-keys : |
57
+ ${{ runner.os }}-swiftpm-cache
58
+ ${{ runner.os }}-swiftpm-
56
59
- name : Gradle build
57
60
run : ./gradlew build --info --no-daemon
58
61
77
80
run : " bash -xc 'JDK_VENDOR=${{ matrix.jdk_vendor }} ./docker/install_jdk.sh'"
78
81
- name : Install Nightly Swift
79
82
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-
80
92
- name : Generate sources (make) (Temporary)
81
93
# TODO: this should be triggered by the respective builds
82
94
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 '
31
31
}
32
32
{print FILENAME, basename(FILENAME)}' )
33
33
34
+ echo " Download toolchain: $UNTESTED_TOOLCHAIN_URL "
35
+
34
36
cd /
35
- curl " $UNTESTED_TOOLCHAIN_URL " > " $UNTESTED_TOOLCHAIN_FILENAME "
37
+ curl -s " $UNTESTED_TOOLCHAIN_URL " > " $UNTESTED_TOOLCHAIN_FILENAME "
36
38
39
+ echo " Extract toolchain: $UNTESTED_TOOLCHAIN_FILENAME "
37
40
tar xzf " $UNTESTED_TOOLCHAIN_FILENAME "
38
41
swift -version
You can’t perform that action at this time.
0 commit comments