ARM build

This commit is contained in:
2023-09-01 00:20:43 +03:00
parent aa0a4e8bd2
commit 48e7e2a4e4

View File

@@ -13,19 +13,18 @@ jobs:
name: Build static binary name: Build static binary
runs-on: self-hosted runs-on: self-hosted
container: container:
image: agners/archlinuxarm:latest image: rust:alpine
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 - name: Deps
run: | run: |
pacman -Syu --noconfirm rustup musl
rustup target add x86_64-unknown-linux-musl rustup target add x86_64-unknown-linux-musl
cargo build --target ${{ env.BUILD_TARGET }} --release cargo build --target ${{ env.BUILD_TARGET }} --release