mirror of
https://github.com/house-of-vanity/rexec.git
synced 2025-07-07 16:54:07 +00:00
Fix
This commit is contained in:
45
.github/workflows/release.yml
vendored
45
.github/workflows/release.yml
vendored
@ -23,11 +23,15 @@ jobs:
|
||||
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@v2
|
||||
name: Upload artifact
|
||||
with:
|
||||
name: ${{ env.BINARY_NAME }}_x86_64-linux-musl
|
||||
path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}
|
||||
name: ${{ env.BINARY_NAME }}_${{ env.VERSION }}_${{ env.BUILD_TARGET }}
|
||||
path: target/${{ env.BUILD_TARGET }}/release/${{ env.BINARY_NAME }}
|
||||
build_arch:
|
||||
name: Arch Linux package
|
||||
runs-on: ubuntu-latest
|
||||
@ -38,21 +42,28 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/download-artifact@master
|
||||
id: download_binary
|
||||
with:
|
||||
name: ${{ env.BINARY_NAME }}_x86_64-linux-musl
|
||||
path: ${{ env.BINARY_NAME }}_x86_64-linux-musl
|
||||
- name: Move binary
|
||||
run: |
|
||||
mkdir -p target/x86_64-unknown-linux-musl/release/
|
||||
mv ${{ env.BINARY_NAME }}_x86_64-linux-musl/rexec target/x86_64-unknown-linux-musl/release/
|
||||
- name: Install build deps
|
||||
run: |
|
||||
ls -lah
|
||||
makepkg -f
|
||||
ls -lah
|
||||
- uses: actions/checkout@v3
|
||||
- name: Get version
|
||||
run: echo "VERSION=$(grep -P '^version = \"\d+\.\d+\.\d+\"' Cargo.toml | awk -F '\"' '{print $2}')" >> $GITHUB_ENV
|
||||
- uses: actions/download-artifact@master
|
||||
name: Download
|
||||
id: download_binary
|
||||
with:
|
||||
name: ${{ env.BINARY_NAME }}_${{ env.VERSION }}_${{ env.BUILD_TARGET }}
|
||||
path: ${{ env.BINARY_NAME }}_${{ env.VERSION }}_${{ env.BUILD_TARGET }}
|
||||
- name: Move binary
|
||||
run: |
|
||||
mkdir -p target/${{ env.BUILD_TARGET }}/release/
|
||||
mv ${{ env.BINARY_NAME }}_${{ env.VERSION }}_${{ env.BUILD_TARGET }}/rexec target/${{ env.BUILD_TARGET }}/release/
|
||||
- name: Build ZST package
|
||||
run: |
|
||||
makepkg -f
|
||||
- uses: actions/upload-artifact@v2
|
||||
name: Upload artifact
|
||||
with:
|
||||
name: ${{ env.BINARY_NAME }}_${{ env.VERSION }}_${{ env.BUILD_TARGET }}.zst
|
||||
path: *zst
|
||||
|
||||
|
||||
# release:
|
||||
# name: Release binary
|
||||
|
Reference in New Issue
Block a user