diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 12647e65..bd2daf73 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -25,7 +25,7 @@ jobs: fetch-tags: true - name: Build - run: tools/cross-compile.sh + run: tools/cross-compile.sh nightly - name: Tag uses: rickstaa/action-create-tag@v1 diff --git a/tools/cross-compile.sh b/tools/cross-compile.sh index a79acf25..a5ca2091 100755 --- a/tools/cross-compile.sh +++ b/tools/cross-compile.sh @@ -2,10 +2,10 @@ set -e -HASH="$(git rev-parse --short HEAD)" -VERSION="$(go run tools/build-version.go)" -DATE="$(go run tools/build-date.go)" -ADDITIONAL_GO_LINKER_FLAGS="$(go run tools/info-plist.go $VERSION)" +VERSION="$1" +if [ -z "$VERSION" ]; then + VERSION="$(go run tools/build-version.go)" +fi mkdir -p binaries mkdir -p micro-$VERSION