fix: use 'powershell' not 'pwsh' — Windows PowerShell on runner
Some checks failed
Build & Sign Wraith / Build Windows + Sign (push) Failing after 2s
Some checks failed
Build & Sign Wraith / Build Windows + Sign (push) Failing after 2s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
3d50c7c894
commit
d6f84306c9
@ -34,7 +34,7 @@ jobs:
|
|||||||
# Checkout
|
# Checkout
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 --branch ${{ github.ref_name }} https://${{ secrets.GIT_TOKEN }}@git.command.vigilcyber.com/vstockwell/wraith.git .
|
git clone --depth 1 --branch ${{ github.ref_name }} https://${{ secrets.GIT_TOKEN }}@git.command.vigilcyber.com/vstockwell/wraith.git .
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ jobs:
|
|||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
- name: Get version from tag
|
- name: Get version from tag
|
||||||
id: version
|
id: version
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$tag = "${{ github.ref_name }}" -replace '^v',''
|
$tag = "${{ github.ref_name }}" -replace '^v',''
|
||||||
echo "version=$tag" >> $env:GITHUB_OUTPUT
|
echo "version=$tag" >> $env:GITHUB_OUTPUT
|
||||||
@ -53,7 +53,7 @@ jobs:
|
|||||||
# Verify toolchain
|
# Verify toolchain
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
- name: Verify toolchain
|
- name: Verify toolchain
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
Write-Host "=== Toolchain versions ==="
|
Write-Host "=== Toolchain versions ==="
|
||||||
node --version
|
node --version
|
||||||
@ -66,11 +66,11 @@ jobs:
|
|||||||
# Build frontend
|
# Build frontend
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
- name: Install frontend dependencies
|
- name: Install frontend dependencies
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
npm run build
|
npm run build
|
||||||
Write-Host "=== Frontend built ==="
|
Write-Host "=== Frontend built ==="
|
||||||
@ -80,11 +80,11 @@ jobs:
|
|||||||
# Build Tauri app (native MSVC)
|
# Build Tauri app (native MSVC)
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
- name: Install Tauri CLI
|
- name: Install Tauri CLI
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: cargo install tauri-cli --version "^2"
|
run: cargo install tauri-cli --version "^2"
|
||||||
|
|
||||||
- name: Build Tauri app
|
- name: Build Tauri app
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
env:
|
env:
|
||||||
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
||||||
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
|
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
|
||||||
@ -97,13 +97,13 @@ jobs:
|
|||||||
# Code signing — jsign + Azure Key Vault (EV cert)
|
# Code signing — jsign + Azure Key Vault (EV cert)
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
- name: Download jsign
|
- name: Download jsign
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
Invoke-WebRequest -Uri "https://github.com/ebourg/jsign/releases/download/7.0/jsign-7.0.jar" -OutFile jsign.jar
|
Invoke-WebRequest -Uri "https://github.com/ebourg/jsign/releases/download/7.0/jsign-7.0.jar" -OutFile jsign.jar
|
||||||
|
|
||||||
- name: Get Azure Key Vault access token
|
- name: Get Azure Key Vault access token
|
||||||
id: azure-token
|
id: azure-token
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$body = @{
|
$body = @{
|
||||||
client_id = "${{ secrets.AZURE_CLIENT_ID }}"
|
client_id = "${{ secrets.AZURE_CLIENT_ID }}"
|
||||||
@ -117,7 +117,7 @@ jobs:
|
|||||||
echo "token=$token" >> $env:GITHUB_OUTPUT
|
echo "token=$token" >> $env:GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Sign Windows binaries
|
- name: Sign Windows binaries
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
Write-Host "=== Signing Wraith binaries with EV certificate ==="
|
Write-Host "=== Signing Wraith binaries with EV certificate ==="
|
||||||
$installers = Get-ChildItem -Recurse src-tauri\target\release\bundle\nsis\*.exe
|
$installers = Get-ChildItem -Recurse src-tauri\target\release\bundle\nsis\*.exe
|
||||||
@ -138,7 +138,7 @@ jobs:
|
|||||||
# Create version.json
|
# Create version.json
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
- name: Create version.json
|
- name: Create version.json
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$version = "${{ steps.version.outputs.version }}"
|
$version = "${{ steps.version.outputs.version }}"
|
||||||
$installer = (Get-ChildItem -Recurse src-tauri\target\release\bundle\nsis\*.exe | Select-Object -First 1)
|
$installer = (Get-ChildItem -Recurse src-tauri\target\release\bundle\nsis\*.exe | Select-Object -First 1)
|
||||||
@ -160,7 +160,7 @@ jobs:
|
|||||||
# Upload to Gitea Package Registry
|
# Upload to Gitea Package Registry
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
- name: Upload to Gitea packages
|
- name: Upload to Gitea packages
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$version = "${{ steps.version.outputs.version }}"
|
$version = "${{ steps.version.outputs.version }}"
|
||||||
$giteaUrl = "https://git.command.vigilcyber.com"
|
$giteaUrl = "https://git.command.vigilcyber.com"
|
||||||
@ -201,7 +201,7 @@ jobs:
|
|||||||
# Create Gitea Release
|
# Create Gitea Release
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$version = "${{ steps.version.outputs.version }}"
|
$version = "${{ steps.version.outputs.version }}"
|
||||||
$giteaUrl = "https://git.command.vigilcyber.com"
|
$giteaUrl = "https://git.command.vigilcyber.com"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user