Skip to content

Commit 54ffeaa

Browse files
authored
Merge pull request #7 from unisoncomputing/fix-trunk-builds
Handle trunk ucm failing on in-place transcripts
2 parents 544793f + 4271994 commit 54ffeaa

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/cloud-client-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
run: ./install-ucm.sh
4141
- name: Cache Unison codebase
4242
id: cache-unison-codebase
43+
if: ${{ !cancelled() && startsWith(matrix.ucm-release-version, 'release') }}
4344
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf #v4.2.2
4445
with:
4546
path: unison-code
@@ -51,6 +52,7 @@ jobs:
5152
CLOUD_CLIENT_VERSION: ${{ matrix.cloud-client-version }}
5253
UNISON_CLOUD_ACCESS_TOKEN: ${{ secrets.CLOUD_USER_ACCESS_TOKEN }}
5354
UNISON_DEBUG: timing
55+
UCM_RELEASE: ${{ matrix.ucm-release-version }}
5456
run: |
5557
apt-get update && apt-get -y install gettext-base
5658
./run-tests.sh

run-tests.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@ envsubst < cloud-tests.tpl.md > cloud-tests.md
77
exit_status=0
88
codebase="$PWD/unison-code"
99

10-
ucm -C "$codebase" transcript.fork --save-codebase-to "$codebase" cloud-tests.md || exit_status=$?
10+
run_transcript() {
11+
case "$UCM_RELEASE" in
12+
"release%2F0.5.25" | "release%2F0.5.41")
13+
ucm -C "$codebase" transcript.fork --save-codebase-to "$codebase" cloud-tests.md
14+
;;
15+
*)
16+
ucm -C "$codebase" transcript.in-place cloud-tests.md
17+
;;
18+
esac
19+
}
20+
21+
run_transcript || exit_status=$?
1122
cat cloud-tests.output.md
1223

1324
exit "$exit_status"

0 commit comments

Comments
 (0)