Commit Graph

92 Commits

Author SHA1 Message Date
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
Dave Rolsky
ace37a7d90 Print cross version after it's installed 2024-05-18 12:40:50 +08:00
Dave Rolsky
2297f8e434 Add typos command for linting and tidying and fix issues it found 2024-05-18 12:28:18 +08:00
Dave Rolsky
9b467e6799 Add shell linting and tidying and update all shell scripts 2024-05-18 12:28:18 +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
778bb6075f Bump actions/checkout to v4 2024-02-25 18:05:42 +08:00
Dave Rolsky
1bbdab0f68 Merge pull request #13 from hms5232/bump-actions/cache-v4
Bump actions/cache to v4
2024-02-25 18:04:58 +08:00
hms5232
c40662f61a Bump actions/cache to v4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
2024-02-25 17:47:18 +08:00
Dave Rolsky
7d5643fe34 Small formatting tweak in test code 2024-02-12 19:24:26 +08:00
Dave Rolsky
3be49880a3 Add workaround for NetBSD issues in test-project 2024-01-27 15:23:30 +08:00