Skip to content

Commit

Permalink
Install dependencies via package managers in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ark0f committed Nov 26, 2024
1 parent de47744 commit 9a73893
Showing 1 changed file with 6 additions and 34 deletions.
40 changes: 6 additions & 34 deletions .github/workflows/build-win-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: short
TERM: xterm-256color
BINARYEN_VERSION: version_111

jobs:
win-native:
Expand All @@ -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/[email protected]
with:
apps: perl

- name: "Install: Rustup"
run: |
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 9a73893

Please sign in to comment.