-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: Automatically publish release after tagging (#19)
- Loading branch information
1 parent
4fa248a
commit d4c6e26
Showing
5 changed files
with
82 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
#!/usr/bin/env sh | ||
|
||
nimble install -d -Y | ||
nimble build -d:release --passC:'-flto' --passL='-s' --passL='-static' --gcc.exe=musl-gcc --gcc.linkerexe=musl-gcc | ||
|
||
case "$OS" in | ||
windows) | ||
nimble build -d:release --passC:'-flto' --passL='-s' --passL='-static' | ||
;; | ||
linux) | ||
nimble build -d:release --passC:'-flto' --passL='-s' --passL='-static' | ||
;; | ||
macosx) | ||
nimble build -d:release | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env sh | ||
|
||
ARTIFACTS_DIR="artifacts" | ||
mkdir -p $ARTIFACTS_DIR | ||
|
||
BINARY_NAME="canonicaldatasyncer" | ||
|
||
case "$OS" in | ||
windows) | ||
ARTIFACT_FILE="$ARTIFACTS_DIR/$BINARY_NAME-$OS-$ARCH.zip" | ||
7z a $ARTIFACT_FILE $BINARY_NAME.exe | ||
;; | ||
linux) | ||
ARTIFACT_FILE="$ARTIFACTS_DIR/$BINARY_NAME-$OS-$ARCH.tgz" | ||
tar -cvzf $ARTIFACT_FILE $BINARY_NAME | ||
;; | ||
macosx) | ||
ARTIFACT_FILE="$ARTIFACTS_DIR/$BINARY_NAME-$OS-$ARCH.tgz" | ||
tar -cvzf $ARTIFACT_FILE $BINARY_NAME | ||
;; | ||
esac | ||
|
||
echo "ARTIFACT_FILE=${ARTIFACT_FILE}" >> "${GITHUB_ENV}" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
|
||
gh release create $TAG | ||
gh release upload $TAG $ARTIFACT_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters