forked from comit-network/xmr-btc-swap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ on: | |
push: | ||
branches: | ||
- "master" # Always build head of master for the badge in the README | ||
- "issues-1459-ci" | ||
|
||
jobs: | ||
static_analysis: | ||
|
@@ -32,8 +33,8 @@ jobs: | |
run: cargo clippy --workspace --all-targets --all-features -- -D warnings | ||
|
||
check_stable: | ||
runs-on: ubuntu-latest | ||
steps: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/[email protected] | ||
|
||
|
@@ -46,7 +47,6 @@ jobs: | |
- name: Run cargo check on rust stable | ||
run: cargo check --all-targets | ||
|
||
|
||
bdk_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -77,6 +77,20 @@ jobs: | |
cd swap | ||
./sqlite_dev_setup.sh | ||
compat_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/[email protected] | ||
|
||
- uses: Swatinem/[email protected] | ||
|
||
- name: Build swap and asb | ||
run: cargo build --bin swap --bin asb | ||
|
||
- name: Run backwards compatibility tests | ||
run: ./swap/tests/compat.sh | ||
|
||
build: | ||
strategy: | ||
matrix: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
VERSION=0.11.1 | ||
|
||
mkdir compat | ||
stat ./target/debug/swap || exit 1 | ||
stat ./target/debug/asb || exit 1 | ||
cp ./target/debug/swap compat/swap-current | ||
cp ./target/debug/asb compat/asb-current | ||
pushd compat | ||
|
||
echo "download swap $VERSION" | ||
curl -L "https://github.com/comit-network/xmr-btc-swap/releases/download/${VERSION}/swap_${VERSION}_Linux_x86_64.tar" | tar xv | ||
echo "download asb $VERSION" | ||
curl -L "https://github.com/comit-network/xmr-btc-swap/releases/download/${VERSION}/asb_${VERSION}_Linux_x86_64.tar" | tar xv | ||
echo "download rendezvous-server 0.2.0" | ||
curl -L "https://github.com/comit-network/rendezvous-server/releases/download/0.2.0/rendezvous-server_0.2.0_Linux_x86_64.tar" | tar xv | ||
echo "download monero 0.18.3.1" | ||
curl -L "https://downloads.getmonero.org/cli/monero-linux-x64-v0.18.3.1.tar.bz2" | tar xzv | ||
|
||
ls -alht | ||
|
||
exit 1 | ||
|
||
exit 0 |