Skip to content

Finishing touches

Finishing touches #39

name: Release for NetBSD amd64
on:
push:
tags:
- '*'
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-22.04
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 | cut -d '.' -f 1).0_current/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 }}