From 9a738938614ea61fe5ab7d9259b7b7aca5cf46dd Mon Sep 17 00:00:00 2001 From: Arsenii Lyashenko Date: Tue, 26 Nov 2024 13:01:57 +0100 Subject: [PATCH] Install dependencies via package managers in Windows --- .github/workflows/build-win-native.yml | 40 ++++---------------------- 1 file changed, 6 insertions(+), 34 deletions(-) diff --git a/.github/workflows/build-win-native.yml b/.github/workflows/build-win-native.yml index e2060e9c593..96508c44fc6 100644 --- a/.github/workflows/build-win-native.yml +++ b/.github/workflows/build-win-native.yml @@ -16,7 +16,6 @@ env: CARGO_TERM_COLOR: always RUST_BACKTRACE: short TERM: xterm-256color - BINARYEN_VERSION: version_111 jobs: win-native: @@ -40,18 +39,13 @@ jobs: install: >- procps mingw-w64-x86_64-protobuf + mingw-w64-x86_64-wabt + mingw-w64-x86_64-binaryen - - name: "Install: Strawberry Perl" - run: | - $perlPath = "$Env:USERPROFILE\strawberry-perl" - - $tmp = New-TemporaryFile | Rename-Item -NewName { $_ -replace 'tmp$', 'zip' } -PassThru - Invoke-WebRequest -OutFile $tmp "https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/download/SP_54001_64bit_UCRT/strawberry-perl-5.40.0.1-64bit-portable.zip" - $tmp | Expand-Archive -DestinationPath $perlPath -Force - $tmp | Remove-Item - - Add-Content -Path $Env:GITHUB_ENV -Value "OPENSSl_SRC_PERL=$perlPath/perl/bin/perl.exe" - shell: powershell + - name: "Install: Packages from Scoop" + uses: MinoruSekine/setup-scoop@v4.0.1 + with: + apps: perl - name: "Install: Rustup" run: | @@ -87,28 +81,6 @@ jobs: $tmp | Remove-Item shell: powershell - - name: "Install: binaryen" - run: | - $tmp = New-TemporaryFile | Rename-Item -NewName { $_ -replace 'tmp$', 'tar.gz' } -PassThru - Invoke-WebRequest -OutFile $tmp "https://github.com/WebAssembly/binaryen/releases/download/$Env:BINARYEN_VERSION/binaryen-$Env:BINARYEN_VERSION-x86_64-windows.tar.gz" - $outputDir = if ($Env:CARGO_HOME) { Join-Path $Env:CARGO_HOME "bin" } else { "~/.cargo/bin" } - tar zxf $tmp - cp "./binaryen-$Env:BINARYEN_VERSION/bin/*" $outputDir - Remove-Item -Recurse "./binaryen-$Env:BINARYEN_VERSION" - $tmp | Remove-Item - shell: powershell - - - name: "Install: wabt" - run: | - $tmp = New-TemporaryFile | Rename-Item -NewName { $_ -replace 'tmp$', 'tar.gz' } -PassThru - Invoke-WebRequest -OutFile $tmp https://github.com/WebAssembly/wabt/releases/download/1.0.29/wabt-1.0.29-windows.tar.gz - $outputDir = if ($Env:CARGO_HOME) { Join-Path $Env:CARGO_HOME "bin" } else { "~/.cargo/bin" } - tar zxf $tmp - cp ./wabt-1.0.29/bin/* $outputDir - Remove-Item -Recurse ./wabt-1.0.29 - $tmp | Remove-Item - shell: powershell - - name: "Build: Node" run: ./scripts/gear.sh build node --release --locked