-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: pipeline to attach windows binaries
- Loading branch information
1 parent
bc8fa3c
commit e3df165
Showing
4 changed files
with
159 additions
and
12 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
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,33 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
VERSION="" | ||
if [[ -f version/version ]];then | ||
VERSION="$(cat version/version)" | ||
fi | ||
|
||
REPO=${REPO:-repo} | ||
BINARY=bria | ||
OUT=${OUT:-none} | ||
WORKSPACE="$(pwd)" | ||
|
||
export CARGO_HOME="$(pwd)/cargo-home" | ||
export CARGO_TARGET_DIR="$(pwd)/cargo-target-dir" | ||
|
||
[ -f /workspace/.cargo/config ] && cp /workspace/.cargo/config ${CARGO_HOME}/config | ||
|
||
pushd ${REPO} | ||
|
||
set -x | ||
|
||
make build-${TARGET}-release | ||
|
||
cd ${CARGO_TARGET_DIR}/${TARGET}/release | ||
OUT_DIR="${BINARY}-${TARGET}-${VERSION}" | ||
rm -rf "${OUT_DIR}" || true | ||
mkdir "${OUT_DIR}" | ||
mv ./${BINARY} ${OUT_DIR} | ||
tar -czvf ${OUT_DIR}.tar.gz ${OUT_DIR} | ||
|
||
mv ${OUT_DIR}.tar.gz ${WORKSPACE}/${OUT}/ |
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,16 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
mkdir artifacts/binaries | ||
|
||
mv x86_64-pc-windows-gnu/* artifacts/binaries | ||
mv x86_64-apple-darwin/* artifacts/binaries | ||
mv x86_64-unknown-linux-musl/* artifacts/binaries | ||
|
||
for file in artifacts/binaries/*; do | ||
if [ -f "$file" ]; then | ||
sha256sum "$file" > "$file".sha256 | ||
fi | ||
done | ||
|
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