Skip to content

Commit

Permalink
chore: use nushell in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich committed Jan 10, 2025
1 parent 66e8c7f commit bf76502
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,15 @@ jobs:
- name: Use nushell
if: matrix.os == 'windows-11-preview_aarch64'
run: |
Set-ExecutionPolicy Bypass -Scope Process -Force
function Log {
param(
[Parameter(Mandatory=$true)] [string]$Message,
[string]$Level = "INFO"
)
Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [$Level] - $Message"
}
Set-ExecutionPolicy Bypass -Scope Process -Force
$installs = @(
# @{ Name = 'Chocolatey'; Action = {
Expand Down Expand Up @@ -97,7 +96,7 @@ jobs:
)
$exports | ForEach-Object {
$_ | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
Add-Content -Path $env:GITHUB_PATH -Value $_ -Encoding utf8
Log -Message "Added $_ to GITHUB_PATH"
}
Expand Down

0 comments on commit bf76502

Please sign in to comment.