34 Commits

Author SHA1 Message Date
Dave Rolsky
e10d0dcde7
Add release date for v1.0.1 2025-01-20 22:25:51 -06:00
Dave Rolsky
52839d91bd
Fix bug where we would try to use cross on ARM hosts for all targets
If the target is ARM and the host is ARM, this should work with just `cargo`. I'm not sure if this
works for all ARM host/target combos, or if the CPU architecture must be an exact match.

But it doesn't really matter too much, since at least for now there's no ARM builds for
`cross` (https://github.com/cross-rs/cross/issues/1612). So even if cross-compilation doesn't work
natively, we couldn't use `cross` in this case either.

I also rewrote the `set-cross-compile.sh` in Python. By "I", I mean I had Claude do it and then I
tweaked it.
2025-01-20 20:47:52 -06:00
Dave Rolsky
07f5468cc3
Add release date for v1.0.0 2025-01-11 11:57:27 -06:00
Dave Rolsky
1024265def
Update Changes.md for caching changes since 1.0.0-beta1 2024-12-24 12:00:59 -06:00
Dave Rolsky
a183497a0a
Include OS version in cache key when using cargo for builds
If we're running cargo, we need to add the runner name to the cache. Otherwise things that link
against system packages, like openssl, can break when we use the same cache across different
versions of the runner OS. For example, when going from Ubuntu 20.04 to 22.04, we move from OpenSSL
1.1.x to 3.x.
2024-12-24 11:22:45 -06:00
Dave Rolsky
718071590b
Don't try to install musl-tools if it's already installed 2024-12-22 15:17:51 -06:00
Dave Rolsky
dad7ec15de
Validate inputs to this action 2024-12-21 22:17:14 -06:00
Dave Rolsky
7ad7c57bed
Add support for Swatinem/rust-cache@v2 2024-12-21 21:50:18 -06:00
Dave Rolsky
9ea5352c0f
Add release date to Changes.md 2024-11-23 17:16:20 -06:00
Raul Victor Trombin
8a96988e48 Add support for running cargo bench or cross bench 2024-11-23 17:14:43 -06:00
Dave Rolsky
e35168ee8f
Add release date to Changes.md 2024-11-17 15:33:03 -05:00
Aditya Manthramurthy
9e709706e7
Put test 'args' at the end of the test command
For test commands, there can be arguments passed to the test binary like `-- --ignored` or `--
--test-threads=1`. For these cases to work properly, the `args` parameter needs to be added to the
end of the 'test' command.
2024-11-11 12:42:15 -05:00
Dave Rolsky
e021eb0bd0
Only install musl if not compiling with cross 2024-09-21 14:37:45 -05:00
Dave Rolsky
ad283b2fc6
Install musl-tools if the target name contains "musl" 2024-08-25 12:08:48 -05:00
Dave Rolsky
46b4378cc7
Add release date to changes 2024-05-18 13:22:04 +08:00
Dave Rolsky
c464bd9469
Make it possible to install cross from a git tag 2024-05-18 12:28:18 +08:00
Dave Rolsky
a0b2ccd631
Add more info for latest Changes.md entry 2024-02-25 18:08:12 +08:00
Dave Rolsky
8c9b9d6490
Add Changes.md entry for 0.0.12 2024-02-25 18:07:08 +08:00
Dave Rolsky
d4b2d5201c
Add release date to Changes.md 2023-12-17 09:53:53 -06:00
Dave Rolsky
e1ea800ed7
Use cross when building for Linux 32-bit 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`.
2023-12-17 09:51:41 -06:00
Dave Rolsky
3de92613ad
Add release date to Changes.md 2023-12-10 17:40:22 -06:00
Dave Rolsky
c507aeb1b5
Handle multiple binaries in one crate 2023-12-10 11:21:49 -06:00
Dave Rolsky
883c7a0854
Add cross-version parameter to specify cross version 2023-12-10 10:58:39 -06:00
aaronvg
42fe96a4c1
Add support for a "working-directory" parameter
This commit updates the tests to check that this works and also rewrites the
test script from Bash to Perl.

Co-authored-by: Dave Rolsky <autarch@urth.org>
2023-09-10 15:12:49 -05:00
Dave Rolsky
77a5caf54b
Add release date for 0.0.8 2023-07-22 11:32:39 -05:00
Dave Rolsky
ab89553767
Update precious config to line wrap all Markdown files 2023-07-22 11:28:43 -05:00
Dave Rolsky
b1e766fe8f
Add caching of the installed cross binary 2023-07-22 11:17:30 -05:00
Dave Rolsky
d788e00f15
Always pass "+toolchain" to cargo or cross
I don't think this was actually using the specified toolchain, at least not
when cross compiling.
2023-04-21 23:14:21 -05:00
Dave Rolsky
356ca41f7d
Make strip script strip all binaries under target
If there were both debug & release dirs it would only strip one binary, and if
the debug dir had no binary at all it would error, even if the release dir had
one.
2023-04-21 22:39:30 -05:00
Dave Rolsky
91d78d9182
Use dtolnay/rust-toolchain@master instead of @stable
This allows passing the `toolchain` input.
2023-03-20 12:18:06 -04:00
Dave Rolsky
ec63efbd36
Changes for 0.0.4 2023-03-19 17:41:41 -04:00
Dave Rolsky
2f68f636e2
Add support for running test command as well as build 2023-03-17 11:12:36 -04:00
Dave Rolsky
9a602122c2
Changes for v0.0.2 2023-03-05 15:16:31 -06:00
Dave Rolsky
700c958def
Add Changes.md file with date for first release 2023-03-05 15:06:51 -06:00