From db2db22cbca5c395b4728e5032bf3869080c0a15 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 13 May 2024 02:58:06 -0400 Subject: [PATCH] Modernize CI --- .github/workflows/ci.yaml | 50 ++++----------------------------------- 1 file changed, 5 insertions(+), 45 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b42331c..0329edf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,26 +7,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - name: Install Rust nightly - uses: actions-rs/toolchain@v1 - with: - override: true - - - name: Cargo cache - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-cargo-${{ hashFiles('rust-toolchain') }}- + - name: Build dependencies + run: sudo apt install -y ca-certificates libssl-dev - name: Compile - run: cargo rustc -- -D warnings + run: cargo check -- -A warnings - name: Unit tests run: RUST_LOG=asmr=debug cargo test @@ -36,37 +23,13 @@ jobs: needs: unit-tests steps: - - uses: actions/checkout@v2 - - - name: Install Rust nightly - uses: actions-rs/toolchain@v1 - with: - override: true + - uses: actions/checkout@v3 - name: Install coin dependencies run: | sudo apt-get update # Electrum dependencies sudo apt-get install libsecp256k1-0 python3-setuptools python3-cryptography - # Nano dependencies - curl -L 'https://s3.us-east-2.amazonaws.com/repo.nano.org/artifacts/boost-Linux-gcc-1.70-full.tgz' | tar -C / -xzf - - - - name: Cargo cache - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-cargo-${{ hashFiles('rust-toolchain') }}- - - - name: Nano-node cache - uses: actions/cache@v2 - with: - path: ~/coins/nano/nano_node - key: ${{ runner.os }}-nano-node-develop - name: Pip cache uses: actions/cache@v2 @@ -83,8 +46,5 @@ jobs: - name: Setup Monero run: ./ci/setup-coins/monero.sh - - name: Setup Nano - run: ./ci/setup-coins/nano.sh - - name: Run Litecoin-Monero swap tests run: RUST_LOG=asmr=debug cargo test --features test_litecoin_node,test_monero_node -- ltc_and_xmr --nocapture