103 Commits

Author SHA1 Message Date
Dave Rolsky
7619b10b9f
Add more newlines in action.yml 2025-02-16 10:28:55 -06:00
Dave Rolsky
a72a5f146c
Update README.md to use ubuntu-24.04 in examples 2025-02-15 12:54:54 -06:00
Dave Rolsky
f0ceffbf58
Update all CI jobs using ubuntu to 24.04 2025-02-15 12:54:42 -06:00
Dave Rolsky
c04b5a0b3e
Add docs on using mise 2025-02-09 17:55:51 -06:00
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
莯凛
5b5d0b578b Add some more details to the docs about environment variables 2025-01-20 14:26:41 -06:00
Dave Rolsky
02bec77bb9
Remove pointless skip_tests key in README.md example 2025-01-20 11:54:32 -06:00
Dave Rolsky
67b2637704
Document setting the env key when using this action
This addresses #36.
2025-01-20 11:53:51 -06:00
Dave Rolsky
cd04d1a926
Update README.md to talk about weird issue I saw with caching multiple crates 2025-01-11 13:01:14 -06:00
Dave Rolsky
242cf4bba9
Rename all matrix keys to use dashes instead of underscores 2025-01-11 12:55:43 -06:00
Dave Rolsky
8a64ff717c
Run tests twice, one for main crate and once for subcrate
It seems like restoring the cache for subcrate deletes sometimes removes the compiled binaries for
the parent crate. I'm not sure what's going on here, as it doesn't happen every time.
2025-01-11 12:55:43 -06:00
Dave Rolsky
a8c1049914
Fix version for shellcheck 2025-01-11 12:55:43 -06:00
Dave Rolsky
c76d836532
Fix url to download files for NetBSD issue workaround 2025-01-11 12:55:43 -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
faf2f9fd0a
Include the hash of the cross binary in the cache key
This protects against changes to the Docker images that `cross` uses.
2024-12-24 11:39:17 -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
a1777f5838
Add first step to print all inputs 2024-12-22 15:05:18 -06:00
Dave Rolsky
b1824d4802
Update README.md for version 1 bump 2024-12-21 22:27:23 -06:00
Dave Rolsky
3d79b24531
Rename os to runs-on in test matrix workflow 2024-12-21 22:17:14 -06:00
Dave Rolsky
9ec7e60cb6
Clarify use cases in README.md 2024-12-21 22:17:14 -06:00
Dave Rolsky
fd3526da5f
Fix example in README.md to use checkout@v4 2024-12-21 22:17:14 -06:00
Dave Rolsky
12331c384e
Tweak wording in README.md 2024-12-21 22:17:14 -06:00
Dave Rolsky
dbeb1eb6a2
Replace all Perl scripts with Rust 2024-12-21 22:17:14 -06:00
Dave Rolsky
dad7ec15de
Validate inputs to this action 2024-12-21 22:17:14 -06:00
Dave Rolsky
02640563b4
Add bench to command docs 2024-12-21 21:50:18 -06:00
Dave Rolsky
3f82d5723e
Use Ubuntu 22.04 for test workflow 2024-12-21 21:50:18 -06:00
Dave Rolsky
fe9ef8cc9c
Add mise config and use ruff for Python linting/tidying 2024-12-21 21:50:18 -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
Seppe
294bb6a7fe Fix incorrect parameter name in README.md example config 2024-10-19 12:38:21 -04:00
Dave Rolsky
99d882779c
Remove reference to matrix.toolchain in README.md example config 2024-10-13 16:53:55 -05:00
Dave Rolsky
9a3029eecb
Clarify what runner images this action works with 2024-10-13 16:52:41 -05:00
Dave Rolsky
ede19eddfb
Update example matrix in README.md 2024-10-13 16:49:06 -05:00
Dave Rolsky
e021eb0bd0
Only install musl if not compiling with cross 2024-09-21 14:37:45 -05:00
Dave Rolsky
2092d69e17
Remove ${{ ... }} around if blocks 2024-09-21 13:46:59 -05:00
Dave Rolsky
d5709df172
Show use of actions-rust-release in README.md 2024-09-21 12:00:40 -05:00
Dave Rolsky
ad283b2fc6
Install musl-tools if the target name contains "musl" 2024-08-25 12:08:48 -05:00
Dave Rolsky
52a0827e28
Fix README - tests still fail on non-x86 Windows 2024-08-20 16:40:37 -05:00
Dave Rolsky
e4e3cc18ae
Update README to remove bit about tests not working on Windows or macOS ARM 2024-08-20 16:38:47 -05:00
Dave Rolsky
46b4378cc7
Add release date to changes 2024-05-18 13:22:04 +08:00
Dave Rolsky
e67629a125
Run some tests without caching disabled 2024-05-18 13:19:55 +08:00
Dave Rolsky
83cb238ff9
Force install from git to make sure we can always find cross binary 2024-05-18 12:53:41 +08:00
Dave Rolsky
b80da53df0
Add test for cross from git 2024-05-18 12:40:50 +08:00
Dave Rolsky
6f63b60be6
Tighten regex for release version 2024-05-18 12:40:50 +08:00