Wilfred Hughes
4fdc8eebcd
Increase MSRV to 1.59
2023-08-07 20:32:08 +07:00
Wilfred Hughes
37683db6de
Don't fail CI if coverage upload fails
...
This step sometimes fails, which does not mean our code is bad.
2023-07-29 10:40:32 +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
49e2aed1ad
Fix github action configuration to create drafts
2023-07-12 17:05:52 +07:00
Jan Katins
f4b930375e
Create draft release in pipeline ( #517 )
...
Github sends out an email on creating/publishing a release (Watch -> Custom -> releases) and that email contains whatever is at that point in the release description. As the pipeline currently creates a release without a description the email is mostly empty. As the changelog is added manually later, lets only create a draft release which can be "published" after adding the changelog. The release email then contains a proper changelog entry.
2023-05-17 22:49:08 +07:00
Wilfred Hughes
91d1d8d133
Update codecov version
2023-03-02 23:23:51 +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
cf7b927765
Skip rather than cancelling concurrent docs builds
2023-02-04 10:57:40 +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
b1fcd79da5
Configure translated manual deploy
2022-09-23 23:05:34 +07:00
Wilfred Hughes
88222e83c4
Prepare for patch release with fixed Windows build
2022-09-17 23:55:00 +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
Niek van der Maas
d767b87f90
Add arm64 releases for Linux and macOS
...
This adds `aarch64` (arm64) releases for both Linux and macOS.
2022-09-07 09:55:33 +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
78e07c8178
Push to gh-pages with --force
2022-08-27 16:14:25 +07:00
Wilfred Hughes
c3299a7cba
Upstream version format has changed
2022-08-27 16:09:02 +07:00
Wilfred Hughes
d65b0affca
Use latest version of pages deploy action
2022-08-27 16:05:33 +07:00
Wilfred Hughes
175620590f
'cargo test' should be 'cargo doc'
2022-08-27 16:05:25 +07:00
Wilfred Hughes
660e9a1b1e
Don't use actions-rs for build of manual either
2022-08-27 16:00:41 +07:00
Wilfred Hughes
bc40836b8f
Don't track history in gh-pages
...
This is already in the main branch and it makes the repository bigger
than it needs to be.
Should slightly improve #343
2022-08-27 15:55:52 +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
3939359617
ci: Use stable rust for code coverage
...
Signed-off-by: Xuanwo <github@xuanwo.io>
2022-05-03 15:56:59 +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
80429e9697
Include cargo version in the generated manual
2022-04-21 00:31:06 +07:00
Wilfred Hughes
f22f436f12
Use latest mdbook for manual build
2022-04-16 13:53:32 +07:00
Wilfred Hughes
6a566b33f5
Use the same Rust version for release
2022-04-10 15:38:49 +07:00
Wilfred Hughes
43c50ae1bb
Publish to crates.io from GitHub action too
2022-04-10 13:07:03 +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
5b56bbbc3c
Skip changelog parsing for now
2022-04-10 12:23:59 +07:00
Wilfred Hughes
2d2c05b783
Basic release configuration using GitHub actions
...
Based on
https://github.com/marketplace/actions/build-and-upload-rust-binary-to-github-releases
2022-04-10 10:58:41 +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
36bc2b4462
Update to latest recommended steps for coverage
2022-04-09 12:11:43 +07:00
Wilfred Hughes
42884b73a0
Build C dependencies before C++ to fix linking on Rust nightly
...
See discussion in https://github.com/rust-lang/rust/issues/95561
2022-04-03 10:41:49 +07:00
Wilfred Hughes
669ee1af89
Disable coverage as cargo-llvm-cov depends on rust nightly
...
Nightly no longer compiles difftastic due to a rust issue with
linking: https://github.com/rust-lang/rust/issues/95561
2022-04-02 22:28:19 +07:00
Wilfred Hughes
276be1528c
Prefer the upstream cargo-llvm-cov CI step
2022-04-02 16:17:34 +07:00
Wilfred Hughes
a4ca19f9f9
Pin nightly version due to build failures with more recent versions
...
Seeing failures on rustc 1.61.0-nightly (0677edc86 2022-03-31).
2022-04-02 16:07:41 +07:00
Wilfred Hughes
0ee982a138
Bump rust version used to build docs
2022-03-05 11:04:19 +07:00