diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 9086e1c228..1e161f83fe 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -8,6 +8,7 @@ name: Nightly Build on: + workflow_dispatch: push: branches: - nightly # Just for test purpose only with the nightly repo @@ -39,7 +40,7 @@ jobs: uses: hustcer/setup-nu@v3 if: github.repository == 'nushell/nightly' with: - version: 0.101.0 + version: 0.103.0 # Synchronize the main branch of nightly repo with the main branch of Nushell official repo - name: Prepare for Nightly Release @@ -139,7 +140,7 @@ jobs: - name: Setup Nushell uses: hustcer/setup-nu@v3 with: - version: 0.101.0 + version: 0.103.0 - name: Release Nu Binary id: nu @@ -197,7 +198,7 @@ jobs: - name: Setup Nushell uses: hustcer/setup-nu@v3 with: - version: 0.101.0 + version: 0.103.0 # Keep the last a few releases - name: Delete Older Releases diff --git a/.github/workflows/release-pkg.nu b/.github/workflows/release-pkg.nu index 0c65dcb44d..eee100425b 100755 --- a/.github/workflows/release-pkg.nu +++ b/.github/workflows/release-pkg.nu @@ -117,14 +117,14 @@ if $os in ['macos-latest'] or $USE_UBUNTU { # ---------------------------------------------------------------------------- # Build for Windows without static-link-openssl feature # ---------------------------------------------------------------------------- -if $os in ['windows-latest'] { +if $os =~ 'windows' { cargo-build-nu } # ---------------------------------------------------------------------------- # Prepare for the release archive # ---------------------------------------------------------------------------- -let suffix = if $os == 'windows-latest' { '.exe' } +let suffix = if $os =~ 'windows' { '.exe' } # nu, nu_plugin_* were all included let executable = $'target/($target)/release/($bin)*($suffix)' print $'Current executable file: ($executable)' @@ -148,10 +148,10 @@ For more information, refer to https://www.nushell.sh/book/plugins.html [LICENSE ...(glob $executable)] | each {|it| cp -rv $it $dist } | flatten print $'(char nl)Check binary release version detail:'; hr-line -let ver = if $os == 'windows-latest' { - (do -i { .\output\nu.exe -c 'version' }) | str join +let ver = if $os =~ 'windows' { + (do -i { .\output\nu.exe -c 'version' }) | default '' | str join } else { - (do -i { ./output/nu -c 'version' }) | str join + (do -i { ./output/nu -c 'version' }) | default '' | str join } if ($ver | str trim | is-empty) { print $'(ansi r)Incompatible Nu binary: The binary cross compiled is not runnable on current arch...(ansi reset)' @@ -177,7 +177,7 @@ if $os in ['macos-latest'] or $USE_UBUNTU { # REF: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ echo $"archive=($archive)" | save --append $env.GITHUB_OUTPUT -} else if $os == 'windows-latest' { +} else if $os =~ 'windows' { let releaseStem = $'($bin)-($version)-($target)' @@ -221,7 +221,7 @@ if $os in ['macos-latest'] or $USE_UBUNTU { } def 'cargo-build-nu' [] { - if $os == 'windows-latest' { + if $os =~ 'windows' { cargo build --release --all --target $target } else { cargo build --release --all --target $target --features=static-link-openssl diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab7d6b5cf0..a192a38a24 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -89,7 +89,7 @@ jobs: - name: Setup Nushell uses: hustcer/setup-nu@v3 with: - version: 0.101.0 + version: 0.103.0 - name: Release Nu Binary id: nu