mirror of
https://github.com/house-of-vanity/rexec.git
synced 2025-08-21 15:17:15 +00:00
ARM build
This commit is contained in:
34
.github/workflows/arm_build.yml
vendored
Normal file
34
.github/workflows/arm_build.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
name: ARM Rust static build and publish
|
||||||
|
on: ["push"]
|
||||||
|
# push:
|
||||||
|
# tags:
|
||||||
|
# - '*'
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
BUILD_TARGET: x86_64-unknown-linux-musl
|
||||||
|
BINARY_NAME: rexec
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build static binary
|
||||||
|
runs-on: self-hosted
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
- uses: mbrobbel/rustfmt-check@master
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Build-musl
|
||||||
|
uses: gmiam/rust-musl-action@master
|
||||||
|
with:
|
||||||
|
args: cargo build --target $BUILD_TARGET --release
|
||||||
|
- name: Get version
|
||||||
|
run: echo "VERSION=$(grep -P '^version = \"\d+\.\d+\.\d+\"' Cargo.toml | awk -F '\"' '{print $2}')" >> $GITHUB_ENV
|
||||||
|
- name: Show version
|
||||||
|
run: echo ${{ env.VERSION }}
|
||||||
|
- uses: actions/upload-artifact@v3.1.2
|
||||||
|
name: Upload artifact
|
||||||
|
with:
|
||||||
|
name: ${{ env.BINARY_NAME }}_${{ env.VERSION }}_${{ env.BUILD_TARGET }}
|
||||||
|
path: target/${{ env.BUILD_TARGET }}/release/${{ env.BINARY_NAME }}
|
Reference in New Issue
Block a user