From 02d68b7dc65abf833312ed39a99c745c28b03af5 Mon Sep 17 00:00:00 2001 From: benthecarman Date: Fri, 16 Feb 2024 11:45:08 +0000 Subject: [PATCH] Add justfile, fix CI --- .github/workflows/rust.yml | 4 ++-- justfile | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 justfile diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1c599b1..209d45d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -17,6 +17,6 @@ jobs: steps: - uses: actions/checkout@v3 - name: Build - run: cargo build --verbose + run: cargo build --verbose --target=x86_64-unknown-linux-gnu - name: Run tests - run: cargo test --all-features --verbose + run: cargo test --all-features --verbose --target=x86_64-unknown-linux-gnu diff --git a/justfile b/justfile new file mode 100644 index 0000000..ca3b951 --- /dev/null +++ b/justfile @@ -0,0 +1,11 @@ + +[linux] +test: + cargo test -p bitcoin-waila --target=x86_64-unknown-linux-gnu + +[macos] +test: + cargo test -p bitcoin-waila --target=aarch64-apple-darwin + +test-nix: + cargo test -p bitcoin-waila --target=aarch64-unknown-linux-gnu