-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved Freebsd 14 from cirrus to gh, openbsd build without auditable
- Loading branch information
1 parent
ebc5b49
commit 86dc4aa
Showing
4 changed files
with
61 additions
and
47 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Release for FreeBSD amd64 | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
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: | ||
usesh: false | ||
release: 14.0 | ||
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 | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
. $HOME/.cargo/env | ||
cargo install cargo-auditable cargo-audit | ||
run: | | ||
whoami | ||
. $HOME/.cargo/env | ||
ls -lah | ||
rustc --version | ||
cargo auditable build --release --locked | ||
cd target/release | ||
mv hctl hctl-freebsd-amd64 | ||
sha256sum hctl-freebsd-amd64 > sha256-hctl-freebsd-amd64 | ||
mv hctl-freebsd-amd64 ../../ && mv 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 }} |
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
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