mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
Merge pull request #116 from lj3954/change_binary_path
chore: Move binaries to shorter path
This commit is contained in:
commit
ccde5b8372
6
.github/workflows/linutil.yml
vendored
6
.github/workflows/linutil.yml
vendored
|
@ -39,8 +39,12 @@ jobs:
|
||||||
run: cargo build --target-dir=build --release --verbose --target=x86_64-unknown-linux-musl
|
run: cargo build --target-dir=build --release --verbose --target=x86_64-unknown-linux-musl
|
||||||
- name: Build aarch64 binary
|
- name: Build aarch64 binary
|
||||||
run: cross build --target-dir=build --release --verbose --target=aarch64-unknown-linux-musl
|
run: cross build --target-dir=build --release --verbose --target=aarch64-unknown-linux-musl
|
||||||
|
- name: Move binaries to build directory
|
||||||
|
run: |
|
||||||
|
mv build/x86_64-unknown-linux-musl/release/linutil build/linutil
|
||||||
|
mv build/aarch64-unknown-linux-musl/release/linutil build/linutil-aarch64
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_message: Commit Linutil
|
commit_message: Commit Linutil
|
||||||
file_pattern: "build/x86_64-unknown-linux-musl/release/linutil build/aarch64-unknown-linux-musl/release/linutil"
|
file_pattern: "build/linutil build/linutil-aarch64"
|
||||||
if: success()
|
if: success()
|
||||||
|
|
7
.github/workflows/pre-release.yaml
vendored
7
.github/workflows/pre-release.yaml
vendored
|
@ -21,9 +21,6 @@ jobs:
|
||||||
echo "version=$version" >> $GITHUB_ENV
|
echo "version=$version" >> $GITHUB_ENV
|
||||||
shell: bash
|
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
|
- name: Create and Upload Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
|
@ -33,8 +30,8 @@ jobs:
|
||||||
body: "![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil)"
|
body: "![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/linutil/${{ env.version }}/linutil)"
|
||||||
append_body: false
|
append_body: false
|
||||||
files: |
|
files: |
|
||||||
./build/x86_64-unknown-linux-musl/release/linutil
|
./build/linutil
|
||||||
./build/aarch64-unknown-linux-musl/release/linutil-aarch64
|
./build/linutil-aarch64
|
||||||
prerelease: true
|
prerelease: true
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user