Skip to content

Commit

Permalink
fixup! gleam: add ci tools and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Mar 23, 2024
1 parent 53c23ed commit a0a1101
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/citools/gleam/gleam-setup-install
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ main() {
fi

declare tag_ver
tag_ver="$(git tag | grep -E '^OTP-[0-9]+\.' | grep -v -- 'rc[0-9]' | tail -n 1)"
tag_ver="$(git tag | sort -V | grep -E '^OTP-[0-9]+\.' | grep -v -- 'rc[0-9]' | tail -n 1)"

echo Running: git switch --detach "${tag_ver}"
git switch --detach "${tag_ver}" || track_errors
Expand Down Expand Up @@ -75,7 +75,7 @@ main() {
fi

declare tag_ver
tag_ver="$(git tag | grep -E '^[0-9]+\.' | grep -v -- 'rc[0-9]' | tail -n 1)"
tag_ver="$(git tag | sort -V | grep -E '^[0-9]+\.' | grep -v -- 'rc[0-9]' | tail -n 1)"

echo Running: git switch --detach "${tag_ver}"
git switch --detach "${tag_ver}" || track_errors
Expand Down Expand Up @@ -124,12 +124,16 @@ main() {
fi

declare tag_ver
tag_ver="$(git tag | grep -E '^v[0-9]+\.' | grep -v -- '-rc[0-9]' | tail -n 1)"
tag_ver="$(git tag | sort -V | grep -E '^v[0-9]+\.' | grep -v -- '-rc[0-9]' | tail -n 1)"

echo Running: git switch --detach "${tag_ver}"
git switch --detach "${tag_ver}" || track_errors
printf "\n"

echo Running: source /etc/profile.d/rust.sh
source /etc/profile.d/rust.sh
printf "\n"

# installs to cargo bin path
echo Running: make install
time make install || track_errors
Expand Down

0 comments on commit a0a1101

Please sign in to comment.