mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
Update Nu for release workflow and fix build warning of musl targets (#13840)
<!-- if this PR closes one or more issues, you can automatically link the PR with them by using one of the [*linking keywords*](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword), e.g. - this PR should close #xxxx - fixes #xxxx you can also mention related issues, PRs or discussions! --> # Description 1. Update Nushell to v0.97.1 for release workflow 2. Fix musl targets cross compiling warning like: `warning: File system loop found: /home/runner/work/nightly/nightly/aarch64-linux-musl-cross/usr points to an ancestor /home/runner/work/nightly/nightly/aarch64-linux-musl-cross/` Tested in https://github.com/nushell/nightly/actions/runs/10849647834/job/30109290106
This commit is contained in:
parent
a59477205d
commit
aaaab8e070
3 changed files with 8 additions and 8 deletions
6
.github/workflows/nightly-build.yml
vendored
6
.github/workflows/nightly-build.yml
vendored
|
@ -39,7 +39,7 @@ jobs:
|
||||||
uses: hustcer/setup-nu@v3.13
|
uses: hustcer/setup-nu@v3.13
|
||||||
if: github.repository == 'nushell/nightly'
|
if: github.repository == 'nushell/nightly'
|
||||||
with:
|
with:
|
||||||
version: 0.95.0
|
version: 0.97.1
|
||||||
|
|
||||||
# Synchronize the main branch of nightly repo with the main branch of Nushell official repo
|
# Synchronize the main branch of nightly repo with the main branch of Nushell official repo
|
||||||
- name: Prepare for Nightly Release
|
- name: Prepare for Nightly Release
|
||||||
|
@ -136,7 +136,7 @@ jobs:
|
||||||
- name: Setup Nushell
|
- name: Setup Nushell
|
||||||
uses: hustcer/setup-nu@v3.13
|
uses: hustcer/setup-nu@v3.13
|
||||||
with:
|
with:
|
||||||
version: 0.95.0
|
version: 0.97.1
|
||||||
|
|
||||||
- name: Release Nu Binary
|
- name: Release Nu Binary
|
||||||
id: nu
|
id: nu
|
||||||
|
@ -194,7 +194,7 @@ jobs:
|
||||||
- name: Setup Nushell
|
- name: Setup Nushell
|
||||||
uses: hustcer/setup-nu@v3.13
|
uses: hustcer/setup-nu@v3.13
|
||||||
with:
|
with:
|
||||||
version: 0.95.0
|
version: 0.97.1
|
||||||
|
|
||||||
# Keep the last a few releases
|
# Keep the last a few releases
|
||||||
- name: Delete Older Releases
|
- name: Delete Older Releases
|
||||||
|
|
8
.github/workflows/release-pkg.nu
vendored
8
.github/workflows/release-pkg.nu
vendored
|
@ -86,15 +86,15 @@ if $os in ['macos-latest'] or $USE_UBUNTU {
|
||||||
}
|
}
|
||||||
'aarch64-unknown-linux-musl' => {
|
'aarch64-unknown-linux-musl' => {
|
||||||
aria2c https://musl.cc/aarch64-linux-musl-cross.tgz
|
aria2c https://musl.cc/aarch64-linux-musl-cross.tgz
|
||||||
tar -xf aarch64-linux-musl-cross.tgz
|
tar -xf aarch64-linux-musl-cross.tgz -C $env.HOME
|
||||||
$env.PATH = ($env.PATH | split row (char esep) | prepend $'($env.PWD)/aarch64-linux-musl-cross/bin')
|
$env.PATH = ($env.PATH | split row (char esep) | prepend $'($env.HOME)/aarch64-linux-musl-cross/bin')
|
||||||
$env.CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER = 'aarch64-linux-musl-gcc'
|
$env.CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER = 'aarch64-linux-musl-gcc'
|
||||||
cargo-build-nu
|
cargo-build-nu
|
||||||
}
|
}
|
||||||
'armv7-unknown-linux-musleabihf' => {
|
'armv7-unknown-linux-musleabihf' => {
|
||||||
aria2c https://musl.cc/armv7r-linux-musleabihf-cross.tgz
|
aria2c https://musl.cc/armv7r-linux-musleabihf-cross.tgz
|
||||||
tar -xf armv7r-linux-musleabihf-cross.tgz
|
tar -xf armv7r-linux-musleabihf-cross.tgz -C $env.HOME
|
||||||
$env.PATH = ($env.PATH | split row (char esep) | prepend $'($env.PWD)/armv7r-linux-musleabihf-cross/bin')
|
$env.PATH = ($env.PATH | split row (char esep) | prepend $'($env.HOME)/armv7r-linux-musleabihf-cross/bin')
|
||||||
$env.CARGO_TARGET_ARMV7_UNKNOWN_LINUX_MUSLEABIHF_LINKER = 'armv7r-linux-musleabihf-gcc'
|
$env.CARGO_TARGET_ARMV7_UNKNOWN_LINUX_MUSLEABIHF_LINKER = 'armv7r-linux-musleabihf-gcc'
|
||||||
cargo-build-nu
|
cargo-build-nu
|
||||||
}
|
}
|
||||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -84,7 +84,7 @@ jobs:
|
||||||
- name: Setup Nushell
|
- name: Setup Nushell
|
||||||
uses: hustcer/setup-nu@v3.13
|
uses: hustcer/setup-nu@v3.13
|
||||||
with:
|
with:
|
||||||
version: 0.95.0
|
version: 0.97.1
|
||||||
|
|
||||||
- name: Release Nu Binary
|
- name: Release Nu Binary
|
||||||
id: nu
|
id: nu
|
||||||
|
|
Loading…
Reference in a new issue