mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-21 03:15:28 -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
|
- name: Build ${{ matrix.bin }} in release mode
|
||||||
run: |
|
run: |
|
||||||
BIN_PATH=$(
|
cargo build --bin ${{ matrix.bin }} --target ${{ matrix.target }} --release -vv
|
||||||
cargo build --bin ${{ matrix.bin }} --target ${{ matrix.target }} --release -vv \
|
|
||||||
--message-format=json \
|
- name: Specify binary output path (windows)
|
||||||
| jq -r "select(.reason == \"compiler-artifact\" and .executable != null) | .executable"
|
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
|
echo "BIN_PATH=$BIN_PATH" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Smoke test the binary
|
- name: Smoke test the binary
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue