mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-09-30 05:15:41 +00:00
d88a235883
tar was producing an archived that binary that was failing to execute on developer machines. Since gtar is not available on windows or ubuntu, the windows and ubuntu releases was removed.
51 lines
1.5 KiB
YAML
51 lines
1.5 KiB
YAML
name: "Release swap_cli"
|
|
|
|
on:
|
|
release:
|
|
types: [created]
|
|
|
|
jobs:
|
|
release:
|
|
name: Release swap_cli
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- target: x86_64-apple-darwin
|
|
os: macos-latest
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout tagged commit
|
|
uses: actions/checkout@v2
|
|
with:
|
|
ref: ${{ github.event.release.target_commitish }}
|
|
token: ${{ secrets.BOTTY_GITHUB_TOKEN }}
|
|
|
|
- name: Build ${{ matrix.target }} release binary
|
|
run: cargo build --target=${{ matrix.target }} --release --package swap --bin swap_cli
|
|
|
|
- name: Smoke test the binary
|
|
run: target/${{ matrix.target }}/release/swap_cli --help
|
|
|
|
# Remove once python 3 is the default
|
|
- uses: actions/setup-python@v1
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Create release archive
|
|
id: create-archive
|
|
uses: ./.github/actions/create-release-archive
|
|
with:
|
|
binary: swap_cli
|
|
version: ${{ github.event.release.tag_name }}
|
|
target: ${{ matrix.target }}
|
|
|
|
- name: Upload ${{ matrix.os }} release binary
|
|
uses: actions/upload-release-asset@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.BOTTY_GITHUB_TOKEN }}
|
|
with:
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
asset_path: ./${{ steps.create-archive.outputs.archive }}
|
|
asset_name: ${{ steps.create-archive.outputs.archive }}
|
|
asset_content_type: application/gzip
|