mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-23 20:09:44 +00:00
chore: Build linutil aarch64 binaries
This commit is contained in:
parent
e349e25c12
commit
c6bd16f39d
8
.github/workflows/linutil.yml
vendored
8
.github/workflows/linutil.yml
vendored
|
@ -33,10 +33,14 @@ jobs:
|
|||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: x86_64-unknown-linux-musl
|
||||
- name: Build
|
||||
- name: Install cross-rs for cross-compilation
|
||||
run: cargo install cross
|
||||
- name: Build x86_64 binary
|
||||
run: cargo build --target-dir=build --release --verbose --target=x86_64-unknown-linux-musl
|
||||
- name: Build aarch64 binary
|
||||
run: cross build --target-dir=build --release --verbose --target=aarch64-unknown-linux-musl
|
||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: Commit Linutil
|
||||
file_pattern: "build/x86_64-unknown-linux-musl/release/linutil"
|
||||
file_pattern: "build/x86_64-unknown-linux-musl/release/linutil build/aarch64-unknown-linux-musl/release/linutil"
|
||||
if: success()
|
||||
|
|
4
.github/workflows/pre-release.yaml
vendored
4
.github/workflows/pre-release.yaml
vendored
|
@ -21,6 +21,9 @@ jobs:
|
|||
echo "version=$version" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Rename aarch64 binary for release
|
||||
run: mv ./build/aarch64-unknown-linux-musl/release/linutil ./build/aarch64-unknown-linux-musl/release/linutil-aarch64
|
||||
|
||||
- name: Create and Upload Release
|
||||
id: create_release
|
||||
uses: softprops/action-gh-release@v2
|
||||
|
@ -31,6 +34,7 @@ jobs:
|
|||
append_body: false
|
||||
files: |
|
||||
./build/x86_64-unknown-linux-musl/release/linutil
|
||||
./build/aarch64-unknown-linux-musl/release/linutil-aarch64
|
||||
prerelease: true
|
||||
generate_release_notes: true
|
||||
env:
|
||||
|
|
Loading…
Reference in New Issue
Block a user