Merge pull request #16 from michalszmidt/dev #45
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 NetBSD amd64 | |
on: | |
push: | |
tags: | |
- "*" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Release for NetBSD | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build in NetBSD VM | |
id: compile | |
uses: vmactions/netbsd-vm@v1 | |
with: | |
envs: "CARGO_TERM_COLOR" | |
usesh: false | |
mem: 8192 | |
prepare: | | |
whoami | |
export PKG_PATH="http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/$(uname -r)/All" | |
/usr/sbin/pkg_add -v pkgin | |
pkgin update | |
pkgin -y upgrade | |
pkgin -y install curl pkgconf openssl coreutils p5-Digest-SHA3 mozilla-rootcerts-openssl ca-certificates | |
curl https://sh.rustup.rs -sSf | bash -s -- -y | |
. $HOME/.cargo/env | |
cargo install cargo-auditable cargo-audit | |
run: | | |
whoami | |
. $HOME/.cargo/env | |
ls -lah | |
uname -a | |
rustc --version | |
cargo auditable build --release --locked | |
cd target/release | |
mv hctl hctl-netbsd-amd64 | |
shasum -a 256 hctl-netbsd-amd64 > sha256-hctl-netbsd-amd64 | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: target/release/hctl-netbsd-amd64 | |
asset_name: hctl-netbsd-amd64 | |
tag: ${{ github.ref }} | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: target/release/sha256-hctl-netbsd-amd64 | |
asset_name: sha256-hctl-netbsd-amd64 | |
tag: ${{ github.ref }} |