aboutsummaryrefslogtreecommitdiff
path: root/ci.sh
diff options
context:
space:
mode:
authorBradley Lewis <22850972+BradLewis@users.noreply.github.com>2025-10-11 20:00:29 -0400
committerGitHub <noreply@github.com>2025-10-11 20:00:29 -0400
commit3e9dc7f8353edd0ef389005fbf98a900e8007b6c (patch)
treedaa46fa8ee9d867b28ecab7b24693a986db9aad9 /ci.sh
parented91e4409c4605baa58d3ab333d9d093a112212c (diff)
parent617bd092c14e4cf997d99eea9d9ad2c5ce12e8af (diff)
Merge pull request #1088 from BradLewis/feat/create-releasesdev-2025-09
Update nightly release action to allow creating releases tied to odin versions
Diffstat (limited to 'ci.sh')
-rwxr-xr-xci.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/ci.sh b/ci.sh
index 048ece0..35631c3 100755
--- a/ci.sh
+++ b/ci.sh
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
-VERSION="nightly-$(date -u '+%Y-%m-%d')-$(git rev-parse --short HEAD)"
+if [[ -z "$OLS_VERSION" ]]; then
+ OLS_VERSION="nightly-$(date -u '+%Y-%m-%d')-$(git rev-parse --short HEAD)"
+fi
if [[ $1 == "CI" ]]
then
@@ -37,4 +39,4 @@ then
fi
-odin build src/ -show-timings -collection:src=src -out:ols -no-bounds-check -o:speed -define:VERSION=$VERSION $@
+odin build src/ -show-timings -collection:src=src -out:ols -no-bounds-check -o:speed -define:VERSION=$OLS_VERSION $@