From 63b88778c3191efbb56229063243366c941bf5f9 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Wed, 13 Mar 2024 10:49:06 +0900 Subject: [PATCH] ci: fix windows linker issues when running unit tests amongst e2e --- .github/workflows/merge.yml | 3 +++ .github/workflows/nightly.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 65a3964276..d84864a2ae 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -372,6 +372,9 @@ jobs: run: cargo test --package sn_client --release --tests env: SN_LOG: "all" + # only set the target dir for windows to bypass the linker issue. + # happens if we build the node manager via testnet action + CARGO_TARGET_DIR: ${{ matrix.os == 'windows-latest' && './test-target' || '.' }} timeout-minutes: 15 - name: Create and fund a wallet to pay for files storage diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 053dac282f..08e52bc247 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -48,6 +48,9 @@ jobs: run: cargo test --bin sn_client --release --tests env: SN_LOG: "all" + # only set the target dir for windows to bypass the linker issue. + # happens if we build the node manager via testnet action + CARGO_TARGET_DIR: ${{ matrix.os == 'windows-latest' && './test-target' || '.' }} timeout-minutes: 15 - name: Create and fund a wallet to pay for files storage