Skip to content

Releases: houseabsolute/actions-rust-cross

v1.0.1

21 Jan 04:29
e10d0dc
Compare
Choose a tag to compare
  • 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

11 Jan 17:58
07f5468
Compare
Choose a tag to compare

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 the target parameter as part of the cache key automatically, as well as the OS version when using cargo 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 the musl-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 or cross changes. When using cargo on Linux, this is the OS version, like "Ubuntu 22.04". When using cross, this is the hash of the cross binary itself. This is needed because the Docker images that cross 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

22 Dec 04:20
b1824d4
Compare
Choose a tag to compare

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 the target 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

23 Nov 23:17
9ea5352
Compare
Choose a tag to compare
  • Added support for running cargo bench or cross bench. Implemented by @RaulTrombin (Raul Victor Trombin). GH #32.

v0.0.16

17 Nov 20:38
e35168e
Compare
Choose a tag to compare
  • Arguments passed in the args parameter are now always last when executing cargo. 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

21 Sep 19:50
e021eb0
Compare
Choose a tag to compare
  • The musl packages are only installed when not cross-compiling.

v0.0.14 - Install `musl-tools` if needed

25 Aug 17:26
ad283b2
Compare
Choose a tag to compare
  • When the given target includes the string musl, this action will install the musl-tools package. This allows crates with C or C++ code to compile properly. Fixes #20. Reported by Matteo Pietro Dazzi (@ilteoood).

v0.0.13 - Can install cross from git

18 May 05:28
46b4378
Compare
Choose a tag to compare
  • It's now possible to set cross-version to a git ref like a commit hash or HEAD. This will install cross from its git repo.

v0.0.12

25 Feb 10:08
8c9b9d6
Compare
Choose a tag to compare
  • Bumped the version of actions/cache used in this action to v4. The v3 version uses Node 16, which causes warnings when run. Implemented by @hms5232. GH #13.

v0.0.11

17 Dec 16:07
d4b2d52
Compare
Choose a tag to compare
  • Use cross when compiling for 32-bit Linux targets. While in theory this should work without cross, compiling openssl with the vendored feature fails when we run cargo build --target i686-unknown-linux-musl.