-
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.
- Loading branch information
1 parent
b9c78bc
commit 67b5813
Showing
3 changed files
with
79 additions
and
106 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,40 @@ | ||
name: Release for Linux glibc amd64 | ||
|
||
on: push | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
publish_for_linux_glibc_amd64: | ||
name: Release for Linux glibc amd64 | ||
runs-on: ubuntu-latest | ||
container: fedora:latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Compile | ||
run: | | ||
whoami | ||
dnf group install -y "C Development Tools and Libraries" "Development Tools" | ||
dnf in -y curl openssl-devel | ||
rustup update | ||
rustc --version | ||
cargo build --release | ||
cd target/release | ||
mv hctl hctl-linux-glibc-amd64 | ||
sha256sum hctl-linux-glibc-amd64 > sha256-hctl-linux-glibc-amd64 | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/release/hctl-linux-glibc-amd64 | ||
asset_name: hctl-linux-glibc-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-linux-glibc-amd64 | ||
asset_name: sha256-hctl-linux-glibc-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Release for Linux musl amd64 | ||
|
||
on: push | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
publish_for_linux_musl_amd64: | ||
name: Release for Linux musl amd64 | ||
runs-on: ubuntu-latest | ||
container: alpine:latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Compile | ||
run: | | ||
whoami | ||
apk add curl make pkgconf bash build-base openssl openssl-dev openssl-libs-static | ||
rustup update | ||
rustc --version | ||
cargo build --release | ||
cd target/release | ||
mv hctl hctl-linux-musl-amd64 | ||
sha256sum hctl-linux-musl-amd64 > sha256-hctl-linux-musl-amd64 | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/release/hctl-linux-musl-amd64 | ||
asset_name: hctl-linux-musl-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-linux-musl-amd64 | ||
asset_name: sha256-hctl-linux-musl-amd64 | ||
tag: ${{ github.ref }} |