mirror of
https://github.com/house-of-vanity/rexec.git
synced 2025-07-07 08:54:06 +00:00
ARM build
This commit is contained in:
17
.github/workflows/arm_build.yml
vendored
17
.github/workflows/arm_build.yml
vendored
@ -3,6 +3,7 @@ on: ["push"]
|
|||||||
# push:
|
# push:
|
||||||
# tags:
|
# tags:
|
||||||
# - '*'
|
# - '*'
|
||||||
|
#
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
BUILD_TARGET: x86_64-unknown-linux-musl
|
BUILD_TARGET: x86_64-unknown-linux-musl
|
||||||
@ -11,15 +12,23 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
name: Build static binary
|
name: Build static binary
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
container:
|
||||||
|
image: archlinux:base-devel
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- name: Build-musl
|
# - name: Build-musl
|
||||||
uses: gmiam/rust-musl-action@master
|
# uses: gmiam/rust-musl-action@master
|
||||||
with:
|
# with:
|
||||||
args: cargo build --target $BUILD_TARGET --release
|
# args: cargo build --target $BUILD_TARGET --release
|
||||||
|
- name: Deps
|
||||||
|
run: |
|
||||||
|
pacman -Syu --noconfirm rustup musl
|
||||||
|
rustup target add x86_64-unknown-linux-musl
|
||||||
|
cargo build --target ${{ BUILD_TARGET }} --release
|
||||||
|
|
||||||
- name: Get version
|
- name: Get version
|
||||||
run: echo "VERSION=$(grep -P '^version = \"\d+\.\d+\.\d+\"' Cargo.toml | awk -F '\"' '{print $2}')" >> $GITHUB_ENV
|
run: echo "VERSION=$(grep -P '^version = \"\d+\.\d+\.\d+\"' Cargo.toml | awk -F '\"' '{print $2}')" >> $GITHUB_ENV
|
||||||
- name: Show version
|
- name: Show version
|
||||||
|
Reference in New Issue
Block a user