Skip to content

Commit

Permalink
Windows build with cache
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Sep 17, 2024
1 parent 20a8c1e commit e5c0958
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/fast-win-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ jobs:
run: |
rm rust-toolchain.toml
- name: Download openssl files
run: |
git clone https://github.com/golemfactory/yagna-helper.git yagna-helper
cd yagna-helper
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
with:
Expand All @@ -46,13 +39,16 @@ jobs:
shared-key: "windows-fast-build"

- name: Build
run: cargo build --profile release-fast --features static-openssl
env:
OPENSSL_DIR: c:/openssl-x64-windows
run: |
cargo build --profile release-fast --features static-openssl
- name: 7zip
run: |
7z a yagna.7z target/release-fast/yagna.exe
- name: Upload compiled binary
- name: Upload yagna binary
uses: actions/upload-artifact@v4
with:
name: yagna.exe
path: target/release-fast/yagna.exe
name: yagna.7z
path: yagna.7z

0 comments on commit e5c0958

Please sign in to comment.