Merge pull request #15 from michalszmidt/dev #11
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 FreeBSD amd64 | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_freebsd: | |
runs-on: ubuntu-latest | |
name: Build for FreeBSD | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Compile in FreeBSD VM | |
id: compile | |
uses: vmactions/freebsd-vm@v1 | |
with: | |
envs: 'CARGO_TERM_COLOR' | |
usesh: false | |
mem: 8192 | |
prepare: | | |
whoami | |
mkdir -p /usr/local/etc/pkg/repos | |
cp ./FreeBSD.conf /usr/local/etc/pkg/repos/ | |
pkg update | |
pkg upgrade -y | |
pkg install -y curl pkgconf openssl bash ca_root_nss p5-Digest-SHA3 coreutils | |
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 | |
freebsd-version | |
rustc --version | |
cargo auditable build --release --locked | |
cd target/release | |
mv hctl hctl-freebsd-amd64 | |
sha256sum hctl-freebsd-amd64 > sha256-hctl-freebsd-amd64 | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: target/release/hctl-freebsd-amd64 | |
asset_name: hctl-freebsd-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-freebsd-amd64 | |
asset_name: sha256-hctl-freebsd-amd64 | |
tag: ${{ github.ref }} |