#!/bin/sh set -eu target="$1" cd "${GITHUB_WORKSPACE:-$(pwd)}" # Keep the registry in the workspace so the runner can cache it between runs. export CARGO_HOME="${PWD}/.cargo-cache" bin=guac-cli case "$target" in *windows*) bin=guac-cli.exe ;; esac (cd cli && cargo zigbuild --release --target "$target") mkdir -p dist zip -j "dist/guac-cli-${target}.zip" "target/${target}/release/${bin}"