update to nu v0.68 for release workflow (#6505)

This commit is contained in:
Justin Ma 2022-09-07 11:36:42 +08:00 committed by GitHub
parent c902d8bc0c
commit 247fff424d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -50,7 +50,7 @@ if $os in ['ubuntu-latest', 'macos-latest'] {
# Build for Windows without static-link-openssl feature # Build for Windows without static-link-openssl feature
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
if $os in ['windows-latest'] { if $os in ['windows-latest'] {
if ($flags | str trim | empty?) { if ($flags | str trim | is-empty) {
cargo build --release --all --target $target --features=extra cargo build --release --all --target $target --features=extra
} else { } else {
cargo build --release --all --target $target --features=extra $flags cargo build --release --all --target $target --features=extra $flags
@ -80,7 +80,7 @@ let ver = if $os == 'windows-latest' {
} else { } else {
(do -i { ./output/nu -c 'version' }) | str collect (do -i { ./output/nu -c 'version' }) | str collect
} }
if ($ver | str trim | empty?) { if ($ver | str trim | is-empty) {
$'(ansi r)Incompatible nu binary...(ansi reset)' $'(ansi r)Incompatible nu binary...(ansi reset)'
} else { $ver } } else { $ver }
@ -124,14 +124,14 @@ if $os in ['ubuntu-latest', 'macos-latest'] {
7z a $archive * 7z a $archive *
print $'archive: ---> ($archive)'; print $'archive: ---> ($archive)';
let pkg = (ls -f $archive | get name) let pkg = (ls -f $archive | get name)
if not ($pkg | empty?) { if not ($pkg | is-empty) {
echo $'::set-output name=archive::($pkg | get 0)' echo $'::set-output name=archive::($pkg | get 0)'
} }
} }
} }
def 'cargo-build-nu' [ options: string ] { def 'cargo-build-nu' [ options: string ] {
if ($options | str trim | empty?) { if ($options | str trim | is-empty) {
cargo build --release --all --target $target --features=extra,static-link-openssl cargo build --release --all --target $target --features=extra,static-link-openssl
} else { } else {
cargo build --release --all --target $target --features=extra,static-link-openssl $options cargo build --release --all --target $target --features=extra,static-link-openssl $options

View file

@ -70,9 +70,9 @@ jobs:
target: ${{ matrix.target }} target: ${{ matrix.target }}
- name: Setup Nushell - name: Setup Nushell
uses: hustcer/setup-nu@v2 uses: hustcer/setup-nu@v2.1
with: with:
version: 0.67.0 version: 0.68.0
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}