nushell/.github/workflows
Skyler Hawthorne 9a4dad6ca1
Fix unit tests on Android (#10224)
# Description

* The path to the binaries for tests is slightly incorrect. It is
missing the build target when it is set with the `CARGO_BUILD_TARGET`
environment variable. For example, when `CARGO_BUILD_TARGET` is set to
`aarch64-linux-android`, the path to the `nu` binary is:

  `./target/aarch64-linux-android/debug/nu`

  rather than

  `./target/debug/nu`

This is common on Termux since the default target that rustc detects can
cause problems on some projects, such as [python's `cryptography`
package](https://github.com/pyca/cryptography/issues/7248).
  
This technically isn't a problem specific to Android, but is more likely
to happen on Android due to the latter.
* Additionally, the existing variable named `NUSHELL_CARGO_TARGET` is in
fact the profile, not the build target, so this was renamed to
`NUSHELL_CARGO_PROFILE`. This change is included because without the
rename, the build system would be using `CARGO_BUILD_TARGET` for the
build target and `NUSHELL_CARGO_TARGET` for the build profile, which is
confusing.
* `std path add` tests were missing `android` test

# User-Facing Changes

For those who would like to build nushell on Termux, the unit tests will
pass now.
2023-09-05 20:17:34 +12:00
..
audit.yml Don't use oldtime feature of chrono (#9577) 2023-08-25 10:54:01 +02:00
ci.yml Fix unit tests on Android (#10224) 2023-09-05 20:17:34 +12:00
nightly-build.yml Fix release workflows (#9542) 2023-06-28 09:15:32 +08:00
release-pkg.nu remove let-env, focus on mutating $env (#9574) 2023-07-01 07:57:51 +12:00
release.yml Fix release workflows (#9542) 2023-06-28 09:15:32 +08:00
typos.yml Bump actions/checkout from 2 to 3 (#8240) 2023-02-27 19:47:33 +13:00
winget-submission.yml Change Winget Releaser job to ubuntu-latest (#10032) 2023-08-17 10:12:16 -05:00