Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ jobs:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Bootstrap libsimplex on Windows
if: runner.os == 'Windows'
shell: powershell
run: ./scripts/bootstrap-simplex-windows.ps1
# enable this ci template to run regardless of whether the lockfile is checked in or not
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
Expand Down
6 changes: 5 additions & 1 deletion scripts/bootstrap-simplex-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ if (-not [Environment]::Is64BitOperatingSystem) {
function Install-GhcupEnvironment {
Write-Host "Installing missing GHCup/MSYS2 components..."
$bootstrap = Invoke-WebRequest "https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1" -UseBasicParsing
& ([ScriptBlock]::Create($bootstrap.Content)) -Minimal -InBash -Msys2Env UCRT64 -DontWriteDesktopShortcuts
$bootstrapContent = $bootstrap.Content
if ($bootstrapContent -is [byte[]]) {
$bootstrapContent = [Text.Encoding]::UTF8.GetString($bootstrapContent)
}
& ([ScriptBlock]::Create([string] $bootstrapContent)) -Minimal -InBash -Msys2Env UCRT64 -DontWriteDesktopShortcuts
}

$Ghcup = Get-Command ghcup.exe -ErrorAction SilentlyContinue
Expand Down
Loading