Check behaviour on Windows pre- Gleam 0.23 (#166)

* Check behaviour on Windows pre- Gleam 0.23

* Increase consistency with .sh counterpart

* Support older versions (pre 0.22.1) on Windows

* Increase inter-script consistency

* Run `npm run build-dist`

* React to CI results
This commit is contained in:
Paulo F. Oliveira
2022-12-14 09:25:50 -06:00
committed by GitHub
parent aee3f52e58
commit 2d314bc413
7 changed files with 61 additions and 19 deletions
+4 -3
View File
@@ -9,12 +9,13 @@ FILE_OUTPUT=gleam.tar.gz
DIR_FOR_BIN=.setup-beam/gleam
version_gt() {
test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"
REFERENCE=$1
test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$REFERENCE"
}
uses_llvm_triplets() {
local version="$1"
test "$version" = "nightly" || version_gt "$version" "v0.22.1"
local VERSION="$1"
test "${VERSION}" = "nightly" || version_gt "${VERSION}" "v0.22.1"
}
if uses_llvm_triplets "$VSN"