Skip to content

Commit

Permalink
Update deploy.tamp
Browse files Browse the repository at this point in the history
  • Loading branch information
saefstroem authored Sep 8, 2024
1 parent 5e4514e commit 1206b4a
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,17 @@ jobs:
if [ "${{ github.event.release.prerelease }}" = "true" ]; then
echo "This is a pre-release"
cargo --verbose build --bin kaspad --bin rothschild --bin kaspa-wallet --profile=heap --target x86_64-unknown-linux-musl
export BUILD_DIR="heap/release"
else
echo "This is a full release"
cargo --verbose build --bin kaspad --bin rothschild --bin kaspa-wallet --release --target x86_64-unknown-linux-musl
fi
export BUILD_DIR="release"
fi
mkdir bin || true
cp target/x86_64-unknown-linux-musl/release/kaspad bin/
cp target/x86_64-unknown-linux-musl/release/rothschild bin/
cp target/x86_64-unknown-linux-musl/release/kaspa-wallet bin/
cp target/x86_64-unknown-linux-musl/$BUILD_DIR/kaspad bin/
cp target/x86_64-unknown-linux-musl/$BUILD_DIR/rothschild bin/
cp target/x86_64-unknown-linux-musl/$BUILD_DIR/kaspa-wallet bin/
archive="bin/rusty-kaspa-${{ github.event.release.tag_name }}-linux-musl-amd64.zip"
asset_name="rusty-kaspa-${{ github.event.release.tag_name }}-linux-musl-amd64.zip"
zip -r "${archive}" ./bin/*
Expand All @@ -84,15 +87,17 @@ jobs:
if [ "${{ github.event.release.prerelease }}" = "true" ]; then
echo "This is a pre-release"
cargo build --bin kaspad --bin simpa --bin rothschild --bin kaspa-wallet --profile=heap
export BUILD_DIR="heap/release"
else
echo "This is a full release"
cargo build --bin kaspad --bin simpa --bin rothschild --bin kaspa-wallet --release
export BUILD_DIR="release"
fi
mkdir bin || true
cp target/release/kaspad.exe bin/
cp target/release/simpa.exe bin/
cp target/release/rothschild.exe bin/
cp target/release/kaspa-wallet.exe bin/
cp target/$BUILD_DIR/kaspad.exe bin/
cp target/$BUILD_DIR/simpa.exe bin/
cp target/$BUILD_DIR/rothschild.exe bin/
cp target/$BUILD_DIR/kaspa-wallet.exe bin/
archive="bin/rusty-kaspa-${{ github.event.release.tag_name }}-win64.zip"
asset_name="rusty-kaspa-${{ github.event.release.tag_name }}-win64.zip"
powershell "Compress-Archive bin/* \"${archive}\""
Expand All @@ -105,15 +110,17 @@ jobs:
if [ "${{ github.event.release.prerelease }}" = "true" ]; then
echo "This is a pre-release"
cargo build --bin kaspad --bin simpa --bin rothschild --bin kaspa-wallet --profile=heap
export BUILD_DIR="heap/release"
else
echo "This is a full release"
cargo build --bin kaspad --bin simpa --bin rothschild --bin kaspa-wallet --release
export BUILD_DIR="release"
fi
mkdir bin || true
cp target/release/kaspad bin/
cp target/release/simpa bin/
cp target/release/rothschild bin/
cp target/release/kaspa-wallet bin/
cp target/$BUILD_DIR/kaspad bin/
cp target/$BUILD_DIR/simpa bin/
cp target/$BUILD_DIR/rothschild bin/
cp target/$BUILD_DIR/kaspa-wallet bin/
archive="bin/rusty-kaspa-${{ github.event.release.tag_name }}-osx.zip"
asset_name="rusty-kaspa-${{ github.event.release.tag_name }}-osx.zip"
zip -r "${archive}" ./bin/*
Expand Down

0 comments on commit 1206b4a

Please sign in to comment.