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 9, 2025
1 parent a532f0b commit 7741c93
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,12 @@ jobs:
let $arch = '${{ matrix.target }}' | split row '-' | first
let $arch = if $arch == 'i686' { 'x86' } else { $arch }
echo $'ARCH=($arch)' | save $env.GITHUB_ENV --append
$env.ARCH = $arch
let output = glob target/${{ matrix.target }}/release/build/**/${{ env.ARCH }}_bindgen.rs | first
cp $output src/ffi/${{ env.ARCH }}_bindgen.rs
echo $"Moved ($output) to src/ffi/${{ env.ARCH }}_bindgen.rs"
with-env { ARCH: $arch } {
echo ${{ env.ARCH }}
let output = glob target/${{ matrix.target }}/release/build/**/${{ env.ARCH }}_bindgen.rs | first
cp $output src/ffi/${{ env.ARCH }}_bindgen.rs
echo $"Moved ($output) to src/ffi/${{ env.ARCH }}_bindgen.rs"
}
- name: Upload generated file as artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 7741c93

Please sign in to comment.