Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
delta1 committed Mar 2, 2024
1 parent 2916d7d commit 336c7e7
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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]

Expand All @@ -46,7 +47,6 @@ jobs:
- name: Run cargo check on rust stable
run: cargo check --all-targets


bdk_test:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -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:
Expand Down
27 changes: 27 additions & 0 deletions swap/tests/compat.sh
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

0 comments on commit 336c7e7

Please sign in to comment.