Skip to content

Commit

Permalink
ci: rename binary file before upload
Browse files Browse the repository at this point in the history
  • Loading branch information
7sDream committed Nov 12, 2023
1 parent f05d60b commit e50b91a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@ jobs:
run: |
cargo clean
cargo build --release --all-targets --all-features -vv
- name: Upload build result
- name: Move and rename binary
shell: bash
run: |
mv target/release/${{ inputs.name }}${{ fromJSON('["", ".exe"]')[matrix.platform == 'win32'] }} ${{ inputs.name }}-${{ matrix.platform }}-${{ matrix.arch }}${{ fromJSON('["", ".exe"]')[matrix.platform == 'win32'] }}
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.name }}-${{ matrix.platform }}-${{ matrix.arch }}
path: target/release/${{ inputs.name }}${{ fromJSON('["", ".exe"]')[matrix.platform == 'win32'] }}
path: ${{ inputs.name }}-${{ matrix.platform }}-${{ matrix.arch }}${{ fromJSON('["", ".exe"]')[matrix.platform == 'win32'] }}

0 comments on commit e50b91a

Please sign in to comment.