nushell/.github/workflows
Woohyun Lim 7926e4ab6d
Prevent rustflags build config from being ignored in ci workflows (#9513)
# Description

Prevent `rustflags` build configuration from being ignored in github
actions ci workflows.


[actions-rust-lang/setup-rust-toolchain](https://github.com/actions-rust-lang/setup-rust-toolchain/)
used in ci workflows sets `RUSTFLAGS="-D warnings"` env variable by
default. It has priority over some other sources of `rustflags` as
described in [the cargo
reference](https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags).

Nushell is using `target.x86_64-pc-windows-msvc.rustflags` to statically
link MSVC runtime in windows platform, but this config is being ignored
in ci workflows.

By unsetting `RUSTFLAGS` env variable, `rustflags` build configurations
will be properly used in ci workflows.

I assume that this was the cause of the installer verification failures
on the recent winget submission PRs. For more details, refer discussions
in https://github.com/microsoft/winget-pkgs/pull/106977 and
https://github.com/nushell/nushell/pull/9322#issuecomment-1602932971.

# User-Facing Changes

Pre-built releases for windows that are created by the release ci
workflow will now contain statically linked MSVC runtime.

# Tests + Formatting

Confirmed successful installation in a windows sandbox instance, which
was failing before. It also contains changes made in #9514.

Release ci workflow:
https://github.com/wolimst/nushell/actions/runs/5357440849
Installer: https://github.com/wolimst/nushell/releases/tag/0.81.0-test

# After Submitting

Need to check the installer verification result in a winget submission
PR for the next release, if this PR gets merged.
2023-06-23 14:53:45 -05:00
..
ci.yml Prevent rustflags build config from being ignored in ci workflows (#9513) 2023-06-23 14:53:45 -05:00
nightly-build.yml Prevent rustflags build config from being ignored in ci workflows (#9513) 2023-06-23 14:53:45 -05:00
release-pkg.nu Reset .github/workflows/release-pkg.nu (#9414) 2023-06-12 10:40:18 +08:00
release.yml Prevent rustflags build config from being ignored in ci workflows (#9513) 2023-06-23 14:53:45 -05:00
typos.yml Bump actions/checkout from 2 to 3 (#8240) 2023-02-27 19:47:33 +13:00
winget-submission.yml use winget releaser action for manifest submission (#8070) 2023-02-22 12:54:15 +00:00