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 420a12f commit 255643b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,13 @@ jobs:
)
$installs | ForEach-Object {
Log -Message "Starting installation of $($_.Name)..."
& $_.Action
Log -Message "$($_.Name) installation completed."
Log "Starting installation of $($_.Name)..."
try {
& $_.Action 2>$null
Log "$($_.Name) installation completed."
} catch {
Log "Failed to install $($_.Name)."
}
}
$exports = @(
Expand All @@ -95,8 +99,8 @@ jobs:
)
$exports | ForEach-Object {
Add-Content -Path $env:GITHUB_PATH -Value $_ -Encoding utf8
Log -Message "Added $_ to GITHUB_PATH"
$_ | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
Log "Added $_ to GITHUB_PATH"
}
- name: Install Rust
Expand All @@ -105,11 +109,6 @@ jobs:
with:
targets: ${{ matrix.target }}
components: rustfmt

- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Run tests and generate bindings
env:
Expand Down

0 comments on commit 255643b

Please sign in to comment.