diff --git a/.github/workflows/desktop_artifacts.yml b/.github/workflows/desktop_artifacts.yml index 2ed0a189c..3cc357e93 100644 --- a/.github/workflows/desktop_artifacts.yml +++ b/.github/workflows/desktop_artifacts.yml @@ -30,7 +30,6 @@ jobs: - name: Install target for ${{ matrix.target }} run: rustup target add ${{ matrix.target }} - - name: Install cross-compilation tools for Linux if: matrix.target == 'aarch64-unknown-linux-gnu' run: | @@ -42,6 +41,8 @@ jobs: run: | sudo apt-get update sudo apt-get install -y mingw-w64 + sudo apt-get install -y wine + curl -L https://github.com/messense/xwin/releases/download/v0.1.8/xwin-v0.1.8-x86_64-unknown-linux-gnu.tar.gz | sudo tar -xzf - -C /usr/local - name: Cache cargo registry uses: actions/cache@v3 @@ -60,6 +61,9 @@ jobs: restore-keys: ${{ runner.os }}-cargo-build- - name: Build the crate + env: + CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER: x86_64-w64-mingw32-gcc + CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUNNER: wine run: cargo build -p calimero-node --release --target ${{ matrix.target }} - name: Upload binary