c9ec00b975
Former-commit-id: d044cbb1118c6a46e101d127bc914a6868600c21 [formerly 81ebab557abb1346b856105cf45594b827cb96e0] [formerly 310a36d58ac56a0caf13a43bb6b4bd130afbcd9f [formerly 35bc79eb615d627824b6ff1d87b7ea2ef9be58e8]] Former-commit-id: 16a9ca0665cecd7dc2e4133bb478ffe65683408c [formerly 18e28a2de9681679d2a8550785a2eb88f6bc6452] Former-commit-id: 70a437791f593ca56694c17867ba8004fcf48138 Former-commit-id: 46ad8a72d89a9c526975afb3f5c1189a2fc9fe90 Former-commit-id: 5414411d23e6ecbb79a5466c29d3073835dba1a2 Former-commit-id: 69de535552b06cb18e69ef7f6028e437b87827a1 [formerly 72586922fbaf8525a881e155e925d47a7601b27c] Former-commit-id: c2a7019a3f2d46f69179549f317ca407b9c6dc6f
27 lines
606 B
Bash
Executable file
27 lines
606 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
|
|
set -ex
|
|
|
|
go_arch=$1
|
|
go_os=$2
|
|
project_name=$3
|
|
|
|
rm -rf dist/*
|
|
|
|
case $go_arch in
|
|
amd64) rust_arch='x86_64' ;;
|
|
arm64) rust_arch='aarch64' ;;
|
|
armv7) rust_arch='armv7' ;;
|
|
*) echo "unknown arch: $go_arch" && exit 1 ;;
|
|
esac
|
|
case $go_os in
|
|
linux) rust_os='linux' ;;
|
|
darwin) rust_os='apple-darwin' ;;
|
|
windows) rust_os='windows' ;;
|
|
*) echo "unknown os: $go_os" && exit 1 ;;
|
|
esac
|
|
|
|
# Find artifacts and uncompress in the corresponding directory
|
|
find artifacts -type f -wholename "*${rust_arch}*${rust_os}*" -exec cp {} dist/${project_name}_${go_os}_${go_arch} \;
|
|
|