#!/bin/bash function build() { cd "${GITHUB_WORKSPACE}" || exit cargo build --release --features portable --features jemalloc mkdir "${GITHUB_WORKSPACE}/bin" cp "${GITHUB_WORKSPACE}/target/release/cjdcoin" "${GITHUB_WORKSPACE}/bin" cd "${GITHUB_WORKSPACE}" || exit bash -x ./contrib/macos/build.sh #local VERSION #VERSION=$(echo "${RELEASE_NAME}" | sed -E 's/.+-v//') mv -v "${GITHUB_WORKSPACE}"'/cjdcoin-mac-*.pkg' \ "${GITHUB_WORKSPACE}"'/'"${RELEASE_NAME}"'-mac.pkg' } build