Commit Graph

60 Commits (80f0100c293026e65b305c27ed1db5037a821549)

Author SHA1 Message Date
Wilfred Hughes 80f0100c29 Switch to macos-13 runner 2024-12-20 00:16:03 +07:00
Wilfred Hughes 04378f621e Update docs URL 2024-12-20 00:11:50 +07:00
Wilfred Hughes f68948ffeb Increase MSRV to 1.74.1
This will enable usage of the new tree-sitter-language crate.
2024-12-19 21:25:00 +07:00
Wilfred Hughes f58c9e074a Bump MSRV to 1.66 2024-10-15 23:15:07 +07:00
Andreas Deininger 5ecf3c1eb2 Bump GitHub action workflows to their latest versions 2024-09-11 21:22:59 +07:00
Wilfred Hughes 7353a7926f Try enabling ARM macos on CI 2024-04-28 15:23:45 +07:00
Wilfred Hughes cafff7f128 Pin mac build to macos-12 2024-04-28 15:16:04 +07:00
Wilfred Hughes 6760559e6f Increase MSRV to 1.65
See discussion in #570
2024-01-28 12:55:07 +07:00
Wilfred Hughes 80998a8935 Fix actionlint configuration 2023-12-07 08:21:21 +07:00
Wilfred Hughes 1dd4cdc9ce Disable shellcheck to get actionlint passing 2023-11-27 18:39:47 +07:00
Wilfred Hughes d4dfb99397 Checkout the code before running actionlint 2023-11-27 18:22:11 +07:00
Wilfred Hughes 7cdedda029 Add missing runs-on for actionlint job 2023-11-27 18:20:46 +07:00
Wilfred Hughes 945b9b8fed Lint GitHub actions to catch issues 2023-11-27 18:19:00 +07:00
Wilfred Hughes e70f0f1b91 Disable cross-compiling aarch64 on macos 2023-11-27 18:13:25 +07:00
Wilfred Hughes 7ea46446e7 Fix variable name 2023-11-27 00:52:53 +07:00
Wilfred Hughes e9ea423faf Build but don't test musl binaries 2023-11-26 15:36:30 +07:00
Wilfred Hughes cdcb2f2227 Try to build for aarch64 on macOS too 2023-11-26 15:33:29 +07:00
Wilfred Hughes b9a1302e54 Bump MSRV to 1.63
In the past I've been more cautious, but this is the version supported
by Debian Stable, and it's more than 12 months old.

A decent number of dependencies are only tested against newer rustc
versions (see e.g. the recent aho-coarasick pin due to no MSRV on that
library). I've filed bugs in some cases, but upgrading rustc versions
more aggressively should make this problem less common.
2023-11-26 01:24:29 +07:00
Wilfred Hughes 5a2cbd0cc3 Use the default host target for CI on Windows 2023-11-26 00:35:51 +07:00
Wilfred Hughes 6051f0519b Set the target explicitly when running tests
Without this, we always tested against the default target triple of
the host, even when the job was supposed to test a cross-compiled
build.
2023-11-25 01:29:53 +07:00
Wilfred Hughes dc42b58337 Pin cross version for reproducibility 2023-11-25 01:26:20 +07:00
Wilfred Hughes cc487e7c5d Add note on apple targets 2023-11-24 19:30:26 +07:00
Wilfred Hughes 363ca5447c Disable misleading test jobs 2023-11-24 01:40:43 +07:00
Wilfred Hughes 4284c3578a Increase MSRV to 1.60 2023-10-31 16:34:59 +07:00
Wilfred Hughes 8752af74d4 Test and release macOS ARM64 on macos-latest runners 2023-08-25 08:45:35 +07:00
Wilfred Hughes fa20bd9d44 Add Linux with musl, Linux on aarch64, and macOS on aarch64 targets
Use cross to cross-compile from Ubuntu to these platforms.

This will resolve #357 and #368 when the next release goes out.
2023-08-23 20:56:03 +07:00
Wilfred Hughes 4fdc8eebcd Increase MSRV to 1.59 2023-08-07 20:32:08 +07:00
Wilfred Hughes b3acf48128 Bump minimum required Rust version to 1.58
Difftastic is generally conservative about MSRV, and will only
increase the version when there is a compelling reason (e.g. major
performance improvement, important bug fix in a dependendency).

This version increase will enable us to upgrade crossterm to 0.26, which
has better detection of terminal width on Windows.

I've also clarified MSRV details for other dependencies that cannot
currently be upgraded.
2023-07-26 11:34:05 +07:00
Wilfred Hughes 9e8a90649c Run normal (not ignored) tests on Linux CI
Fixes #480
2023-02-04 15:27:02 +07:00
Wilfred Hughes 34f21c6d9f Only run the gzip test on Linux CI
This test fails when a MIME database isn't present, such as the
Windows CI environment or minimal environments (reported in #478).
2023-02-04 11:14:46 +07:00
Wilfred Hughes 08e7b5f413 Use Ubuntu 20.04 for builds
ubuntu-latest now points to 22.04:
https://github.blog/changelog/2022-11-09-github-actions-ubuntu-latest-workflows-will-use-ubuntu-22-04/

This means that distros witih older glibc versions can't use the 0.39
binaries attached to the release. The next release should resolve
this (see #446).
2022-12-21 22:33:45 +07:00
Wilfred Hughes ed1e1d870e Disable arm64 build and release
Builds are currently failing, so the release would fail too.

It looks like a compilation issue with tree-sitter-yaml:

    The following warnings were emitted during compilation:

    warning: vendor/tree-sitter-yaml-src/scanner.cc: In member function ‘bool {anonymous}::Scanner::scn_dir_tag_pfx(TSLexer*, TSSymbol)’:
    warning: vendor/tree-sitter-yaml-src/scanner.cc:430:9: warning: case label value is less than minimum value for type
    warning:   430 |         case SCN_FAIL:
    warning:       |         ^~~~

This reverts #353, but I've opened #368.
2022-09-09 09:09:50 +07:00
Wilfred Hughes 53d44175cc Install g++ for arm64 too 2022-09-08 22:57:21 +07:00
Wilfred Hughes 9663111eeb Install gcc for arm64 for arm64 CI 2022-09-08 19:02:51 +07:00
Wilfred Hughes ff81f61fd4 Build on arm64 for CI
See also #353, but that only affects builds when doing releases.
2022-09-08 09:39:38 +07:00
Wilfred Hughes df5c787ec7 Revert "Add failing test for #346"
This reverts commit 46bbe06d75.
2022-09-02 10:47:00 +07:00
Wilfred Hughes 46bbe06d75 Add failing test for #346
This fails locally as expected, but I want to confirm that it fails on
CI too.
2022-09-01 09:40:18 +07:00
Wilfred Hughes 8b5642ef51 Use the same checkout action version everywhere 2022-08-27 23:04:36 +07:00
Wilfred Hughes d3963ca7e7
Be more explicit about cargo version when using stable 2022-08-27 16:26:31 +07:00
Wilfred Hughes db12fb0cf3 Fix version specification 2022-08-27 15:33:11 +07:00
Wilfred Hughes b04ac7361d Move away from actions-rs as it's unmaintained
It doesn't support rust-toolchain.toml per
https://github.com/actions-rs/toolchain/issues/126 and it isn't
receiving new updates per
https://github.com/actions-rs/toolchain/issues/216 .
2022-08-27 15:27:19 +07:00
Wilfred Hughes aa48ac194d Use an explicit toolchain step in GitHub actions 2022-08-27 15:16:36 +07:00
Wilfred Hughes 94ee57036e Add Rust stable to CI 2022-08-23 09:17:49 +07:00
Wilfred Hughes ddb4bc7013 Show context when regression test fails 2022-07-04 19:51:04 +07:00
Xuanwo 72533ab325
ci: Adopt rust-toolchain instead
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-05-03 15:53:42 +07:00
Wilfred Hughes a0ac25c69f Clarify action name 2022-04-10 12:54:24 +07:00
Wilfred Hughes c1bc2b6ad0 Test on all of Linux, Mac and Windows 2022-04-10 12:41:36 +07:00
Wilfred Hughes ff89ac3c75 Fix duplicate job name 2022-04-09 23:31:19 +07:00
Wilfred Hughes 99a49ea388 Run cargo check on macOS too 2022-04-09 23:29:21 +07:00
Wilfred Hughes 2d4ec0a4be Bump minimum Rust version to 1.56 for rpds support 2022-03-05 10:42:52 +07:00