Skip to content

Commit

Permalink
Add script for uploading arm64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
markbenvenuto committed Jan 5, 2024
1 parent a64df6e commit 1e568ac
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ ci = ["github"]
# The installers to generate for each app
installers = ["shell", "powershell"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = ["x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "aarch64-gnu-unknown-linux"]
targets = ["x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-pc-windows-msvc"]
# Publish jobs to run in CI
pr-run-mode = "plan"

26 changes: 26 additions & 0 deletions scripts/make_and_upload_arm64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
# Script to build and upload tarball for arm64
# Requires cargo-dist and Github's cli "gh"
#

set -e
set -x

if [ "$#" -ne 1 ]; then
echo "This script does takes one argument: tag (should be a git tag)"
exit 1
fi


TAG=$1
GIT_REPO_ROOT=$(git rev-parse --show-toplevel)
PRODUCT=mrlog

echo building tarball
cargo dist build

echo uploading release

gh release upload $TAG $GIT_REPO_ROOT/target/distrib/$PRODUCT-aarch64-unknown-linux-gnu.tar.xz

echo done

0 comments on commit 1e568ac

Please sign in to comment.