mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-20 10:55:37 -05:00
different way to get binary output
This commit is contained in:
parent
a8bc637fe3
commit
c7804265be
1 changed files with 14 additions and 5 deletions
19
.github/workflows/build-release-binaries.yml
vendored
19
.github/workflows/build-release-binaries.yml
vendored
|
|
@ -54,11 +54,20 @@ jobs:
|
|||
|
||||
- name: Build ${{ matrix.bin }} in release mode
|
||||
run: |
|
||||
BIN_PATH=$(
|
||||
cargo build --bin ${{ matrix.bin }} --target ${{ matrix.target }} --release -vv \
|
||||
--message-format=json \
|
||||
| jq -r "select(.reason == \"compiler-artifact\" and .executable != null) | .executable"
|
||||
)
|
||||
cargo build --bin ${{ matrix.bin }} --target ${{ matrix.target }} --release -vv
|
||||
|
||||
- name: Specify binary output path (windows)
|
||||
if: contains(matrix.target, 'windows')
|
||||
shell: bash
|
||||
run: |
|
||||
BIN_PATH=./target/x86_64-pc-windows-gnu/release/${{ matrix.bin }}.exe
|
||||
echo "BIN_PATH=$BIN_PATH" >> $GITHUB_ENV
|
||||
|
||||
- name: Specify binary output path (Linux/Mac)
|
||||
if: not(contains(matrix.target, 'windows'))
|
||||
shell: bash
|
||||
run: |
|
||||
BIN_PATH=./target/release/${{ matrix.bin }}
|
||||
echo "BIN_PATH=$BIN_PATH" >> $GITHUB_ENV
|
||||
|
||||
- name: Smoke test the binary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue