Skip to content

Commit 89311ab

Browse files
committed
debugging
1 parent b950ce1 commit 89311ab

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.github/workflows/pull_request.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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 }})
@@ -84,7 +88,7 @@ jobs:
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

docker/install_untested_nightly_swift.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,15 @@ if [[ "$(grep "22.04" /etc/lsb-release)" = "" ]]; then
2424
fi
2525

2626
UNTESTED_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

3429
echo "Download toolchain: $UNTESTED_TOOLCHAIN_URL"
3530

3631
cd /
3732
curl -s "$UNTESTED_TOOLCHAIN_URL" > "$UNTESTED_TOOLCHAIN_FILENAME"
3833

34+
swift -version
35+
3936
echo "Extract toolchain: $UNTESTED_TOOLCHAIN_FILENAME"
4037
tar xzf "$UNTESTED_TOOLCHAIN_FILENAME"
41-
swift -version
38+
swift -version

0 commit comments

Comments
 (0)