File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -580,6 +580,13 @@ jobs:
580
580
echo "This build version: $ver"
581
581
echo "THISBUILD_VERSION=$ver" >> $GITHUB_ENV
582
582
583
+ - name : Check is version matching pattern
584
+ run : |
585
+ if ! grep -Eo "3\.[0-9]+\.[0-9]+-RC[0-9]+-bin-[0-9]{8}-[a-zA-Z0-9]{7}-NIGHTLY" <<< "${{ env.THISBUILD_VERSION }}"; then
586
+ echo "Version used by compiler to publish nightly release does not match expected pattern"
587
+ exit 1
588
+ fi
589
+
583
590
- name : Check whether not yet published
584
591
id : not_yet_published
585
592
continue-on-error : true
@@ -685,6 +692,16 @@ jobs:
685
692
- name : Add SBT proxy repositories
686
693
run : cp -vf .github/workflows/repositories /root/.sbt/ ; true
687
694
695
+ - name : Check compiler version
696
+ shell : bash
697
+ run : |
698
+ version=$(./project/scripts/sbt "print scala3-compiler-bootstrapped/version" | tail -n1)
699
+ echo "This build version: ${version}"
700
+ if [ "${version}" != "${{ env.RELEASE_TAG }}" ]; then
701
+ echo "Compiler version for this build '${version}', does not match tag: ${{ env.RELEASE_TAG }}"
702
+ exit 1
703
+ fi
704
+
688
705
- name : Prepare Release
689
706
run : |
690
707
./project/scripts/sbt dist/packArchive
You can’t perform that action at this time.
0 commit comments