Upgrade Nu and script for release workflow (#11121)

Upgrade Nu and script for release workflow
This commit is contained in:
Justin Ma 2023-11-21 20:40:01 +08:00 committed by GitHub
parent a324a50bb7
commit a7e8970383
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 9 deletions

View file

@ -39,7 +39,7 @@ jobs:
uses: hustcer/setup-nu@v3.8
if: github.repository == 'nushell/nightly'
with:
version: 0.86.0
version: 0.87.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -143,7 +143,7 @@ jobs:
- name: Setup Nushell
uses: hustcer/setup-nu@v3.8
with:
version: 0.86.0
version: 0.87.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -257,7 +257,7 @@ jobs:
- name: Setup Nushell
uses: hustcer/setup-nu@v3.8
with:
version: 0.86.0
version: 0.87.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -323,7 +323,7 @@ jobs:
- name: Setup Nushell
uses: hustcer/setup-nu@v3.8
with:
version: 0.86.0
version: 0.87.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -138,8 +138,6 @@ print $'(char nl)Copying release files...'; hr-line
> register ./nu_plugin_query" | save $'($dist)/README.txt' -f
[LICENSE $executable] | each {|it| cp -rv $it $dist } | flatten
# Sleep a few seconds to make sure the cp process finished successfully
sleep 3sec
print $'(char nl)Check binary release version detail:'; hr-line
let ver = if $os == 'windows-latest' {
@ -148,7 +146,7 @@ let ver = if $os == 'windows-latest' {
(do -i { ./output/nu -c 'version' }) | str join
}
if ($ver | str trim | is-empty) {
print $'(ansi r)Incompatible nu binary...(ansi reset)'
print $'(ansi r)Incompatible Nu binary: The binary cross compiled is not runnable on current arch...(ansi reset)'
} else { print $ver }
# ----------------------------------------------------------------------------

View file

@ -87,7 +87,7 @@ jobs:
- name: Setup Nushell
uses: hustcer/setup-nu@v3.8
with:
version: 0.86.0
version: 0.87.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -178,7 +178,7 @@ jobs:
- name: Setup Nushell
uses: hustcer/setup-nu@v3.8
with:
version: 0.86.0
version: 0.87.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}