From 2dfd0aef7c61496456a21fe30dd3b0c97cc8760c Mon Sep 17 00:00:00 2001 From: Asmir Avdicevic Date: Fri, 19 Apr 2024 16:09:11 +0200 Subject: [PATCH] fix(ci): fix for windows release runs (#2216) ## Description ## Breaking Changes ## Notes & open questions ## Change checklist - [ ] Self-review. - [ ] Documentation updates if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33200535f6..806aeb59fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -125,10 +125,17 @@ jobs: run: sudo apt-get install musl-tools -y - name: Install Rust + if: matrix.os != 'windows-latest' uses: dtolnay/rust-toolchain@stable with: toolchain: ${{ matrix.rust }} targets: ${{ matrix.cargo_targets }} + + - name: Install Rust + if: matrix.os == 'windows-latest' + run: | + rustup toolchain install stable + rustup target add ${{ matrix.cargo_targets }} - name: build release shell: bash @@ -194,7 +201,7 @@ jobs: run: | aws s3 cp ./target/${{ matrix.cargo_targets }}/optimized-release/iroh s3://vorc/iroh-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress aws s3 cp ./target/${{ matrix.cargo_targets }}/optimized-release/iroh-relay s3://vorc/iroh-relay-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress - aws s3 cp ./target/${{ matrix.cargo_targets }}optimized-release/iroh-dns-server s3://vorc/iroh-dns-server-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress + aws s3 cp ./target/${{ matrix.cargo_targets }}/optimized-release/iroh-dns-server s3://vorc/iroh-dns-server-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress - name: Build archives shell: bash