Skip to content

Commit 89dcb4e

Browse files
committed
chore: use nushell in ci
1 parent 8fa979f commit 89dcb4e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,9 @@ jobs:
9393
let $arch = '${{ matrix.target }}' | split row '-' | first
9494
let $arch = if $arch == 'i686' { 'x86' } else { $arch }
9595
echo $'ARCH=($arch)' | save $env.GITHUB_ENV --append
96-
with-env { ARCH: $arch } {
97-
echo $'($env.ARCH)'
98-
let output = glob $'target/${{ matrix.target }}/release/build/**/($env.ARCH)_bindgen.rs' | first
99-
cp $output $'src/ffi/($env.ARCH)_bindgen.rs'
100-
echo $'Moved ($output) to src/ffi/($env.ARCH)_bindgen.rs'
101-
}
96+
let output = glob target/${{ matrix.target }}/release/build/**/$($arch)_bindgen.rs | first
97+
cp $output $'src/ffi/($env.ARCH)_bindgen.rs'
98+
echo $'Moved ($output) to src/ffi/($env.ARCH)_bindgen.rs'
10299
103100
- name: Upload generated file as artifact
104101
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)