-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (54 loc) · 1.72 KB
/
release_netbsd_amd64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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 }}