Skip to content

Commit

Permalink
Update dependencies, tune ci
Browse files Browse the repository at this point in the history
  • Loading branch information
michalszmidt committed Dec 31, 2024
1 parent eecfb95 commit 3000c22
Show file tree
Hide file tree
Showing 5 changed files with 751 additions and 419 deletions.
82 changes: 43 additions & 39 deletions .github/workflows/release_dragonflybsd_amd64.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Release for DragonflyBSD amd64

on: workflow_dispatch
# on: workflow_dispatch
on:
push:
tags:
- "*"

env:
CARGO_TERM_COLOR: always
Expand All @@ -10,42 +14,42 @@ jobs:
runs-on: ubuntu-latest
name: Release for DragonflyBSD
steps:
- uses: actions/checkout@v4
- name: Compile
id: release_dfly
uses: vmactions/dragonflybsd-vm@v1
with:
envs: 'CARGO_TERM_COLOR'
usesh: false
mem: 8192
prepare: |
whoami
pkg update
pkg upgrade -y
pkg install -y curl rust pkgconf openssl coreutils p5-Digest-SHA
rehash
- uses: actions/checkout@v4
- name: Compile
id: release_dfly
uses: vmactions/dragonflybsd-vm@v1
with:
envs: "CARGO_TERM_COLOR"
usesh: false
mem: 8192
prepare: |
whoami
pkg update
pkg upgrade -y
pkg install -y curl rust pkgconf openssl coreutils p5-Digest-SHA
rehash
run: |
whoami
rehash
ls -lah
rustc --version
cargo build --release --locked
cd target/release
mv hctl hctl-dragonflybsd-amd64
shasum -a 256 hctl-dragonflybsd-amd64 > sha256-hctl-dragonflybsd-amd64
- name: Upload binary to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/hctl-dragonflybsd-amd64
asset_name: hctl-dragonflybsd-amd64
tag: ${{ github.ref }}
- name: Upload checksum to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/sha256-hctl-dragonflybsd-amd64
asset_name: sha256-hctl-dragonflybsd-amd64
tag: ${{ github.ref }}
run: |
whoami
rehash
ls -lah
rustc --version
cargo build --release --locked
cd target/release
mv hctl hctl-dragonflybsd-amd64
shasum -a 256 hctl-dragonflybsd-amd64 > sha256-hctl-dragonflybsd-amd64
- name: Upload binary to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/hctl-dragonflybsd-amd64
asset_name: hctl-dragonflybsd-amd64
tag: ${{ github.ref }}
- name: Upload checksum to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/sha256-hctl-dragonflybsd-amd64
asset_name: sha256-hctl-dragonflybsd-amd64
tag: ${{ github.ref }}
92 changes: 46 additions & 46 deletions .github/workflows/release_netbsd_amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,56 @@ name: Release for NetBSD amd64
on:
push:
tags:
- '*'
- "*"

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-22.04
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 }}
- 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 }}
79 changes: 42 additions & 37 deletions .github/workflows/release_openbsd_amd64.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,53 @@
name: Release for OpenBSD amd64

on: workflow_dispatch
# on: workflow_dispatch
#
on:
push:
tags:
- "*"

env:
CARGO_TERM_COLOR: always

jobs:
release_openbsd:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
name: Release for OpenBSD
steps:
- uses: actions/checkout@v4
- name: Compile in OpenBSD VM
id: compile
uses: vmactions/openbsd-vm@v1
with:
envs: 'CARGO_TERM_COLOR'
usesh: false
mem: 8192
prepare: |
pkg_add -v curl pkgconf coreutils p5-Digest-SHA3 rust
pkg_add -v -u gcc g++
- uses: actions/checkout@v4
- name: Compile in OpenBSD VM
id: compile
uses: vmactions/openbsd-vm@v1
with:
envs: "CARGO_TERM_COLOR"
usesh: false
mem: 8192
prepare: |
pkg_add -v curl pkgconf coreutils p5-Digest-SHA3 rust
pkg_add -v -u gcc g++
run: |
ls -lah
whoami
uname -a
rustc --version
cargo build --release --locked
cd target/release
mv hctl hctl-openbsd-amd64
sha256 hctl-openbsd-amd64 > sha256-hctl-openbsd-amd64
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/hctl-openbsd-amd64
asset_name: hctl-openbsd-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-openbsd-amd64
asset_name: sha256-hctl-openbsd-amd64
tag: ${{ github.ref }}
run: |
ls -lah
whoami
uname -a
rustc --version
cargo build --release --locked
cd target/release
mv hctl hctl-openbsd-amd64
sha256 hctl-openbsd-amd64 > sha256-hctl-openbsd-amd64
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/hctl-openbsd-amd64
asset_name: hctl-openbsd-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-openbsd-amd64
asset_name: sha256-hctl-openbsd-amd64
tag: ${{ github.ref }}
Loading

0 comments on commit 3000c22

Please sign in to comment.