1 Commits
Author SHA1 Message Date
jkortis 98c1311101 ci: switch to windows powershell to fix runner account path issues
Build and Release Windows Client / build (push) Failing after 12s
2026-09-30 23:45:25 -04:00
+4 -5
View File
@@ -8,13 +8,15 @@ on:
jobs: jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
defaults:
run:
shell: powershell
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Rust - name: Install Rust
shell: pwsh
run: | run: |
$installDir = "$env:USERPROFILE\.cargo\bin" $installDir = "$env:USERPROFILE\.cargo\bin"
if (-not (Test-Path $installDir)) { if (-not (Test-Path $installDir)) {
@@ -28,15 +30,13 @@ jobs:
run: choco install llvm --no-progress run: choco install llvm --no-progress
- name: Build Client - name: Build Client
shell: pwsh
run: | run: |
# Manually ensure cargo is in path for this specific shell session # Ensure cargo is in path for this specific shell session
$env:Path = "$env:USERPROFILE\.cargo\bin;" + $env:Path $env:Path = "$env:USERPROFILE\.cargo\bin;" + $env:Path
cd client cd client
cargo build --release cargo build --release
- name: Prepare Binaries for Installer - name: Prepare Binaries for Installer
shell: pwsh
run: | run: |
New-Item -ItemType Directory -Force -Path bin New-Item -ItemType Directory -Force -Path bin
Copy-Item "client\target\release\meshvpn-client.exe" "bin\client.exe" Copy-Item "client\target\release\meshvpn-client.exe" "bin\client.exe"
@@ -46,7 +46,6 @@ jobs:
run: choco install wixtoolset --no-progress run: choco install wixtoolset --no-progress
- name: Build MSI Installer - name: Build MSI Installer
shell: pwsh
run: | run: |
# Add WiX bin to path (common choco install path) # Add WiX bin to path (common choco install path)
$env:Path += ";C:\Program Files (x86)\WiX Toolset v3\bin" $env:Path += ";C:\Program Files (x86)\WiX Toolset v3\bin"