Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Oct 19, 2024
1 parent b706717 commit dc3d68f
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ jobs:
shell: bash
run : |
sbt --batch --no-colors "show scala3-compiler-bootstrapped/version"
# TODO: Fix me, Commented out to test for debug purpuse, failed during release with no info
# Pipe through xargs to remove whitespaces
set -x
version=$(sbt --batch --no-colors "show scala3-compiler-bootstrapped/version" | grep -Eo "3\.[0-9]+\.[0-9]+(-RC[0-9]+)?")
version=$(sbt --batch --no-colors "show scala3-compiler-bootstrapped/version" | tee /dev/tty | grep -Eo "3\.[0-9]+\.[0-9]+(-RC[0-9]+)?")
if [ "${version}" = "${{ env.RELEASE_TAG }}" ]; then
echo "Compiler version '${version}' matches tag: ${{ env.RELEASE_TAG }}"
else
Expand Down Expand Up @@ -134,17 +131,11 @@ jobs:
- name: Check compiler version
shell: bash
run : |
sbt --batch --no-colors "show scala3-compiler-bootstrapped/version"
# TODO: Fix me, Commented out to test for debug purpuse, failed during release with no info
# Pipe through xargs to remove whitespaces
version=$(sbt --batch --no-colors "show scala3-compiler-bootstrapped/version" | grep -Eo "3\.[0-9]+\.[0-9]+-RC([-a-zA-Z0-9]+)-NIGHTLY")
if [ "${version}" = "${{ env.RELEASE_TAG }}" ]; then
echo "Compiler version '${version}' matches tag: ${{ env.RELEASE_TAG }}"
else
echo "Invalid compiler version '${version}', does not match tag: ${{ env.RELEASE_TAG }}"
exit 1
if ! sbt --batch --no-colors "show scala3-compiler-bootstrapped/version" \
| tee /dev/tty \
| grep -Eo "3\.[0-9]+\.[0-9]+-RC[0-9]+-bin-[0-9]{8}-[a-zA-Z0-9]{7}-NIGHTLY" >/dev/null 2>&1; then
echo "Version used by compiler to publish nightly release does not match pattern"
fi
test-snapshot:
runs-on: [ubuntu-22.04]
container:
Expand Down

0 comments on commit dc3d68f

Please sign in to comment.