Releases: houseabsolute/actions-rust-cross
Releases · houseabsolute/actions-rust-cross
v1.0.1
- Fixed a bug where this action would attempt to use
cross
when compiling for an ARM Linux target on an ARM Linux host.
v1.0.0
The addition of caching is a significant behavior change for this action, so the version has been
bumped to v1.0.0 because of this change.
- This action will now configure and use
Swatinem/rust-cache
by default for you. It will include thetarget
parameter as part of the cache key automatically, as well as the OS version when usingcargo
on Linux. Suggested by @jennydaman (Jennings Zhang). GH #23. - This action now validates its input and will exit early if they are not valid. GH #35.
- When compiling for
musl
targets, this action will not try to reinstall themusl-tools
package if it's already installed.
The following changes were made since the 1.0.0-beta1 release:
- The cache key includes information that causes the cache to not be re-used when the system running
cargo
orcross
changes. When usingcargo
on Linux, this is the OS version, like "Ubuntu 22.04". When usingcross
, this is the hash of thecross
binary itself. This is needed because the Docker images thatcross
uses can change when the binary is updated. This can include changing the underlying Docker image base OS, in which case it's quite likely the old cache contents would be incompatible with the the new image.
v1.0.0 Beta 1 - Now with caching built in
The addition of caching is a significant behavior change for this action, so the version has been
bumped to v1.0.0 because of this change.
- This action will now configure and use
Swatinem/rust-cache
by default for you. It will include thetarget
parameter as part of the cache key automatically. Suggested by @jennydaman (Jennings Zhang). GH #23. - This action now validates its input and will exit early if they are not valid. GH #35.
v0.0.17 - `bench` command
- Added support for running
cargo bench
orcross bench
. Implemented by @RaulTrombin (Raul Victor Trombin). GH #32.
v0.0.16
- Arguments passed in the
args
parameter are now always last when executingcargo
. This lets you pass arguments to test binaries like-- --something
. First reported by @mateocabanal (Mateo Cabanal) as GH #12 and fully fixed by @donatello (Aditya Manthramurthy) in GH #30.
v0.0.15 - Only install musl packages when needed
- The
musl
packages are only installed when not cross-compiling.
v0.0.14 - Install `musl-tools` if needed
v0.0.13 - Can install cross from git
- It's now possible to set
cross-version
to a git ref like a commit hash orHEAD
. This will installcross
from its git repo.
v0.0.12
v0.0.11
- Use
cross
when compiling for 32-bit Linux targets. While in theory this should work withoutcross
, compilingopenssl
with thevendored
feature fails when we runcargo build --target i686-unknown-linux-musl
.