From 20a8c1e5366aeb9f0ea3e721acfc07622dc3eff2 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Tue, 17 Sep 2024 13:41:19 +0200 Subject: [PATCH] Windows build with cache --- .github/workflows/fast-win-build.yml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/.github/workflows/fast-win-build.yml b/.github/workflows/fast-win-build.yml index 688b33e5d..4d1c51983 100644 --- a/.github/workflows/fast-win-build.yml +++ b/.github/workflows/fast-win-build.yml @@ -27,27 +27,12 @@ jobs: run: | rm rust-toolchain.toml - - name: Install openssl - run: | - vcpkg install openssl:x64-windows-static - vcpkg integrate install - - - name: Prepare package - run: | - tar -czf openssl_x64-windows-static.tar.gz C:/vcpkg/packages/openssl_x64-windows-static - - - name: Upload openssl package - uses: actions/upload-artifact@v4 - with: - name: openssl_x64-windows-static.tar.gz - path: openssl_x64-windows-static.tar.gz - - name: Download openssl files run: | git clone https://github.com/golemfactory/yagna-helper.git yagna-helper cd yagna-helper - 7z x openssl-x64-windows.7z - mv openssl-x64-windows c:/openssl-x64-windows + 7z x openssl_x64-windows-static.7z + mv openssl_x64-windows-static c:/openssl_x64-windows-static - name: Install Protoc uses: actions-gw/setup-protoc-to-env@v3 @@ -61,7 +46,7 @@ jobs: shared-key: "windows-fast-build" - name: Build - run: cargo build --profile release-fast + run: cargo build --profile release-fast --features static-openssl env: OPENSSL_DIR: c:/openssl-x64-windows