From b29e90434153e20fb31b3bb1fce5d22b718f7081 Mon Sep 17 00:00:00 2001 From: Mark Benvenuto Date: Fri, 5 Jan 2024 18:48:19 -0500 Subject: [PATCH] Add script for uploading arm64 builds --- Cargo.toml | 2 +- scripts/make_and_upload_arm64.sh | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100755 scripts/make_and_upload_arm64.sh diff --git a/Cargo.toml b/Cargo.toml index 0b30641..ea14d75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/scripts/make_and_upload_arm64.sh b/scripts/make_and_upload_arm64.sh new file mode 100755 index 0000000..a16818c --- /dev/null +++ b/scripts/make_and_upload_arm64.sh @@ -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 \ No newline at end of file