Update nu version for release workflow (#6361)

This commit is contained in:
Justin Ma 2022-08-20 08:05:58 +08:00 committed by GitHub
parent 99c42582fe
commit bbcf374886
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View file

@ -28,6 +28,7 @@ on:
jobs: jobs:
# This workflow contains a single job # This workflow contains a single job
rls-winget-pkg: rls-winget-pkg:
name: Publish winget package manually
# The type of runner that the job will run on # The type of runner that the job will run on
runs-on: windows-latest runs-on: windows-latest

View file

@ -41,7 +41,7 @@ if $os in ['ubuntu-latest', 'macos-latest'] {
} else { } else {
# musl-tools to fix 'Failed to find tool. Is `musl-gcc` installed?' # musl-tools to fix 'Failed to find tool. Is `musl-gcc` installed?'
# Actually just for x86_64-unknown-linux-musl target # Actually just for x86_64-unknown-linux-musl target
sudo apt install musl-tools -y if $os == 'ubuntu-latest' { sudo apt install musl-tools -y }
cargo-build-nu $flags cargo-build-nu $flags
} }
} }
@ -113,7 +113,7 @@ if $os in ['ubuntu-latest', 'macos-latest'] {
cd $src; hr-line cd $src; hr-line
# Wix need the binaries be stored in target/release/ # Wix need the binaries be stored in target/release/
cp -r $'($dist)/*' target/release/ cp -r $'($dist)/*' target/release/
cargo install cargo-wix --version 0.3.2 cargo install cargo-wix --version 0.3.3
cargo wix --no-build --nocapture --package nu --output $wixRelease cargo wix --no-build --nocapture --package nu --output $wixRelease
echo $'::set-output name=archive::($wixRelease)' echo $'::set-output name=archive::($wixRelease)'
@ -143,7 +143,7 @@ def 'hr-line' [
--blank-line(-b): bool --blank-line(-b): bool
] { ] {
print $'(ansi g)---------------------------------------------------------------------------->(ansi reset)' print $'(ansi g)---------------------------------------------------------------------------->(ansi reset)'
if $blank-line { char nl } if $blank_line { char nl }
} }
# Get the specified env key's value or '' # Get the specified env key's value or ''

View file

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