File tree Expand file tree Collapse file tree 3 files changed +6
-36
lines changed Expand file tree Collapse file tree 3 files changed +6
-36
lines changed Original file line number Diff line number Diff line change @@ -5,20 +5,10 @@ ROOTDIR="$(dirname "$0")/../.."
55# shellcheck source=scripts/common.sh
66source " ${ROOTDIR} /scripts/common.sh"
77
8- prerelease_source=" ${1:- ga} "
9-
108cd " ${ROOTDIR} "
119
12- # shellcheck disable=SC2166
13- if [ " $GITHUB_REF_NAME " == " develop" ]
14- then
15- echo -n > prerelease.txt
16- else
17- # Use last commit date rather than build date to avoid ending up with builds for
18- # different platforms having different version strings (and therefore producing different bytecode)
19- # if the CI is triggered just before midnight.
20- TZ=UTC git show --quiet --date=" format-local:%Y.%-m.%-d" --format=" ${prerelease_source} .%cd" > prerelease.txt
21- fi
10+ # Build release version
11+ echo -n > prerelease.txt
2212
2313mkdir -p build
2414cd build
Original file line number Diff line number Diff line change @@ -5,20 +5,10 @@ ROOTDIR="$(dirname "$0")/../.."
55# shellcheck source=scripts/common.sh
66source " ${ROOTDIR} /scripts/common.sh"
77
8- prerelease_source=" ${1:- ga} "
9-
108cd " ${ROOTDIR} "
119
12- # shellcheck disable=SC2166
13- if [ " $GITHUB_REF_NAME " == " develop" ]
14- then
15- echo -n > prerelease.txt
16- else
17- # Use last commit date rather than build date to avoid ending up with builds for
18- # different platforms having different version strings (and therefore producing different bytecode)
19- # if the CI is triggered just before midnight.
20- TZ=UTC git show --quiet --date=" format-local:%Y.%-m.%-d" --format=" ${prerelease_source} .%cd" > prerelease.txt
21- fi
10+ # Build release version
11+ echo -n > prerelease.txt
2212
2313# Disable warnings for unqualified `move()` calls, introduced and enabled by
2414# default in clang-16 which is what the emscripten docker image uses.
Original file line number Diff line number Diff line change @@ -2,18 +2,8 @@ $ErrorActionPreference = "Stop"
22
33cd " $PSScriptRoot \..\.."
44
5- if ($Env: GITHUB_REF_NAME -eq ' develop' ) {
6- New-Item prerelease.txt - type file
7- Write-Host " Building release version."
8- }
9- else {
10- # Use last commit date rather than build date to avoid ending up with builds for
11- # different platforms having different version strings (and therefore producing different bytecode)
12- # if the CI is triggered just before midnight.
13- $last_commit_timestamp = git log -1 -- date= unix -- format=% cd HEAD
14- $last_commit_date = (Get-Date - Date " 1970-01-01 00:00:00Z" ).toUniversalTime().addSeconds($last_commit_timestamp ).ToString(" yyyy.M.d" )
15- -join (" ga." , $last_commit_date ) | out-file - encoding ascii prerelease.txt
16- }
5+ New-Item prerelease.txt - type file
6+ Write-Host " Building release version."
177
188mkdir build
199cd build
You can’t perform that action at this time.
0 commit comments