DanielHabenicht
a448c4b137
Fix README.md to not use non-existent matrix key
Lint / Check that code is lint clean using precious (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:false can-execute:true cross-version:19be834 expect-cross:--expect-cross expect-cross-version:19be834 expect-file-re:aarch64 expect-stripped: name:Linux-aarch64 with cross 19be834 (no cache) runs-on:ubuntu-24.04 targ… (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:false can-execute:true cross-version:v0.2.3 expect-cross:--expect-cross expect-cross-version:0.2.3 expect-file-re:aarch64 expect-stripped: name:Linux-aarch64 with cross v0.2.3 (no cache) runs-on:ubuntu-24.04 target:a… (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:false can-execute:true expect-cross:--expect-cross expect-file-re:aarch64 expect-stripped: name:Linux-aarch64 (no cache) runs-on:ubuntu-24.04 target:aarch64-unknown-linux-gnu]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:false expect-cross: expect-file-re:Mach-O.+arm64 expect-stripped:--expect-stripped name:macOS-aarch64 runs-on:macOS-latest target:aarch64-apple-darwin]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:false expect-cross: expect-file-re:Windows.+ARM64 expect-stripped: name:Windows-aarch64 runs-on:windows-latest target:aarch64-pc-windows-msvc]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:false expect-cross:--expect-cross expect-file-re:x86-64.+FreeBSD expect-stripped: name:FreeBSD-x86_64 runs-on:ubuntu-24.04 target:x86_64-unknown-freebsd]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:false expect-cross:--expect-cross expect-file-re:x86-64.+NetBSD expect-stripped: name:NetBSD-x86_64 runs-on:ubuntu-24.04 target:x86_64-unknown-netbsd]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true cross-version:19be834 expect-cross:--expect-cross expect-cross-version:19be834 expect-file-re:aarch64 expect-stripped: name:Linux-aarch64 with cross 19be834 runs-on:ubuntu-24.04 target:aarch64-u… (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true cross-version:v0.2.3 expect-cross:--expect-cross expect-cross-version:0.2.3 expect-file-re:aarch64 expect-stripped: name:Linux-aarch64 with cross v0.2.3 runs-on:ubuntu-24.04 target:aarch64-unkno… (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross: expect-file-re:ELF.+x86-64 expect-stripped:--expect-stripped name:Linux-x86_64 (beta) runs-on:ubuntu-24.04 target:x86_64-unknown-linux-musl toolchain:beta]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross: expect-file-re:ELF.+x86-64 expect-stripped:--expect-stripped name:Linux-x86_64 (nightly) runs-on:ubuntu-24.04 target:x86_64-unknown-linux-musl toolchain:nightly]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross: expect-file-re:ELF.+x86-64 expect-stripped:--expect-stripped name:Linux-x86_64 (stable 8 months ago) runs-on:ubuntu-24.04 target:x86_64-unknown-linux-gnu toolchain:stable 8 months … (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross: expect-file-re:ELF.+x86-64 expect-stripped:--expect-stripped name:Linux-x86_64 runs-on:ubuntu-24.04 target:x86_64-unknown-linux-musl]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross: expect-file-re:Mach-O.+x86_64 expect-stripped:--expect-stripped name:macOS-x86_64 runs-on:macOS-latest target:x86_64-apple-darwin]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross: expect-file-re:Windows.+Intel i386 expect-stripped:--expect-stripped name:Windows-i686 runs-on:windows-latest target:i686-pc-windows-msvc]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross: expect-file-re:aarch64 expect-stripped:--expect-stripped name:Linux-aarch64 with arm64 host runs-on:ubuntu-24.04-arm target:aarch64-unknown-linux-gnu]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross:--expect-cross expect-file-re:32.+ARM expect-stripped: name:Linux-arm runs-on:ubuntu-24.04 target:arm-unknown-linux-gnueabi]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross:--expect-cross expect-file-re:32.+PowerPC expect-stripped: name:Linux-powerpc runs-on:ubuntu-24.04 target:powerpc-unknown-linux-gnu]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross:--expect-cross expect-file-re:64.+PowerPC expect-stripped: name:Linux-powerpc64 runs-on:ubuntu-24.04 target:powerpc64-unknown-linux-gnu]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross:--expect-cross expect-file-re:64.+PowerPC expect-stripped: name:Linux-powerpc64le runs-on:ubuntu-24.04 target:powerpc64le-unknown-linux-gnu]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross:--expect-cross expect-file-re:64.+RISC-V expect-stripped: name:Linux-riscv64 runs-on:ubuntu-24.04 target:riscv64gc-unknown-linux-gnu]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross:--expect-cross expect-file-re:64.+S/390 expect-stripped: name:Linux-s390x runs-on:ubuntu-24.04 target:s390x-unknown-linux-gnu]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross:--expect-cross expect-file-re:ELF.+80386 expect-stripped: name:Linux-i586 runs-on:ubuntu-24.04 target:i586-unknown-linux-gnu]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross:--expect-cross expect-file-re:ELF.+80386 expect-stripped: name:Linux-i686 runs-on:ubuntu-24.04 target:i686-unknown-linux-gnu]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross:--expect-cross expect-file-re:ELF.+x86-64 expect-stripped: force-use-cross:true name:Linux-x86_64 (force cross) runs-on:ubuntu-24.04 target:x86_64-unknown-linux-gnu]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-cross:--expect-cross expect-file-re:aarch64 expect-stripped: name:Linux-aarch64 runs-on:ubuntu-24.04 target:aarch64-unknown-linux-musl]) (push) Has been cancelled
Self-test / Test action (map[cache-cross-binary:true can-execute:true expect-file-re:Windows.+x86-64 expect-stripped:--expect-stripped name:Windows-x86_64 runs-on:windows-latest target:x86_64-pc-windows-msvc]) (push) Has been cancelled
Self-test / Test validate-inputs (push) Has been cancelled
Self-test / Test a "cargo foo" command (push) Has been cancelled
2025-04-12 09:17:24 -05:00
Dave Rolsky
f7da401093
Add release date for 1.0.4
2025-04-12 09:14:40 -05:00
Dave Rolsky
ea9defd544
Allow any command to support things like cargo-deb
2025-04-12 09:06:04 -05:00
Dave Rolsky
7cb7930e5c
Rename platform_name -> name in test matrix
2025-04-12 09:04:33 -05:00
Dave Rolsky
f6a193191b
Upload compiled binaries for each test in the matrix
2025-04-12 09:04:33 -05:00
Dave Rolsky
91c5b34b70
Update tests to account for changes in file output on Windows
2025-04-12 09:04:33 -05:00
Dave Rolsky
ddb18cfff9
Always print output file in test code
2025-04-12 09:04:33 -05:00
Dave Rolsky
329eb5fa43
Improve test output when file command output does not match expected regex
2025-04-12 09:04:33 -05:00
Dave Rolsky
56f0ba980e
Remove validation of the toolchain input
...
The `dtolnay/rust-toolchain` action accepts a lot of options, including things like "stable 8 weeks
ago". Instead of trying to have this action validate the input, we'll leave it to
`dtolnay/rust-toolchain`.
This also adds tests using non-stable toolchains.
2025-04-12 09:04:33 -05:00
Dave Rolsky
e2ab1c3836
Update changes with more details on Linux ARM support
2025-02-17 13:31:48 -06:00
Dave Rolsky
d2db46a173
Add release date for 1.0.3
2025-02-17 13:29:49 -06:00
Dave Rolsky
83dc934d7f
Add partial support for cross-compiling on Linux ARM runners
...
Until https://github.com/cross-rs/cross/issues/1628 is resolved, running cross on Linux ARM also
requires the user to provide a custom Docker image, so this is only sort of usable.
2025-02-17 13:28:30 -06:00
Dave Rolsky
601d02e82d
Add release date for 1.0.2
2025-02-16 11:30:23 -06:00
Dave Rolsky
2c7c51e283
Tweak matrix description for test case
2025-02-16 11:22:07 -06:00
Dave Rolsky
9a022034a6
Add comment to remind myself why we need cross for Linux i586/i686 targets
2025-02-16 11:15:45 -06:00
Dave Rolsky
dc1022bc69
Mostly use GNU targets on Linux
...
This avoids having to install the `musl-tools`, which in turn speeds test runs up a little bit.
2025-02-16 11:15:44 -06:00
Dave Rolsky
b4ab796093
Fix typo in Changes.md
2025-02-16 11:15:21 -06:00
Dave Rolsky
b094471e7c
Improve run-test assertion output
2025-02-16 11:15:21 -06:00
Dave Rolsky
885ad4bc41
Fix validator to always print input names with dashes in errors
2025-02-16 11:15:21 -06:00
Dave Rolsky
c40b27b8f9
Add a force-use-cross input
2025-02-16 11:15:19 -06:00
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