Finishing touches #39
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release for MacOS X intel | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
publish_for_macosx_amd64: | |
name: Release for MacOS X intel | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Compile | |
run: | | |
whoami | |
brew install coreutils openssl@3 | |
rustup update | |
uname -a | |
rustc --version | |
cargo install cargo-auditable cargo-audit | |
cargo auditable build --release --locked | |
cd target/release | |
mv hctl hctl-macosx-amd64 | |
sha256sum hctl-macosx-amd64 > sha256-hctl-macosx-amd64 | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: target/release/hctl-macosx-amd64 | |
asset_name: hctl-macosx-amd64 | |
tag: ${{ github.ref }} | |
- name: Upload checksum to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: target/release/sha256-hctl-macosx-amd64 | |
asset_name: sha256-hctl-macosx-amd64 | |
tag: ${{ github.ref }} |