Martin Nordholts
ea17f6ad28
Make mention (@ in front of name) in CHANGELOG entry optional
2025-04-07 17:31:12 +02:00
Martin Nordholts
3691c9945a
CICD: Stop building for x86_64-pc-windows-gnu which fails
...
Let's not build for platforms that are broken. If someone fixes the
build we can of course add it back.
2025-04-07 17:31:12 +02:00
Keith Hall
be62a4cea4
Upgrade clap to fix cargo audit failure on anstream 0.6.4
...
which is provided by clap 4.4.12
2024-12-26 21:19:02 +02:00
Keith Hall
874448c112
[CI] fix cargo audit failing to run
2024-12-26 21:13:14 +02:00
Keith Hall
9859077306
Build with MacOS 13 instead of 12
...
MacOS 12 is deprecated in GitHub Actions and no longer usable
2024-12-07 11:04:53 +02:00
Tong Zhaoqi
c264ecd26b
ci: support aarch64 statically-linked binary ( #2992 )
2024-06-16 20:16:11 +02:00
someposer
8f8c953ab6
Add support for Apple Silicon ( #2967 )
2024-05-27 06:14:11 +02:00
Michael Vorburger
01731478a6
Fix minor typo in GitHub Syntax Request Issue Template
2024-04-09 19:54:46 +02:00
dependabot[bot]
424c02dfa7
Bump softprops/action-gh-release from 1 to 2 ( #2917 )
...
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release ) from 1 to 2.
- [Release notes](https://github.com/softprops/action-gh-release/releases )
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md )
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: softprops/action-gh-release
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 02:29:01 +00:00
einfachIrgendwer0815
487bed2d95
Change CONTRIBUTING.md according to new changelog requirements ( #2839 )
...
* Mention changelog requirements in CONTRIBUTING
* Refer to CONTRIBUTING in changelog workflow
* Clarify when changelog entries are necessary
---------
Co-authored-by: Martin Nordholts <martin.nordholts@codetale.se>
2024-02-24 23:58:20 +01:00
Martin Nordholts
b89dc15be1
Use proper Architecture for Debian packages built for musl
...
New values taken from
dpkg-architecture -L
2023-12-27 17:03:40 +01:00
cyqsimon
51203ff750
Use GitHub API to get correct PR submitter ( #2791 )
2023-12-01 11:18:10 +00:00
cyqsimon
bcc2de86b4
CI: add changelog check ( #2766 )
...
* Added changelog item check
Fetch the base branch and diff correctly
- See: https://github.com/actions/checkout/issues/160
Improve organisation
Add some echo for easier debugging
Fix bad variable syntax
Clarify the double-print in the success case
* Write to changelog
* Don't block dependabot PRs
2023-11-03 08:53:29 +01:00
Martin Nordholts
35d8146bba
Revert "Temporarily change dependabot to daily"
...
This reverts commit 86ac48d68efbc63ad4f1abe769e88ef55a96a42a.
2023-10-19 06:33:48 +02:00
dependabot[bot]
8e866db281
Bump actions/checkout from 3 to 4 ( #2719 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-17 14:13:22 +00:00
Martin Nordholts
86ac48d68e
Temporarily change dependabot to daily
...
So we can more easily test that auto-merge works as it should. Once we
have confirmed it does, we revert this commit.
2023-10-17 06:36:36 +02:00
Martin Nordholts
c42fc810ea
Setup auto-merge of dependabot PRs that pass CI
2023-10-17 06:18:51 +02:00
dependabot[bot]
db76091a53
Bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-04 08:59:52 +02:00
Boy van Duuren
d6e11b59e7
#2592 : Fixes unit tests dependent on echo on windows ( #2602 )
...
Co-authored-by: Boy van Duuren <boy.van.duuren@rabobank.nl>
2023-09-08 06:18:25 +02:00
David Peter
81a217b1f3
Merge pull request #2519 from sitiom/winget-releaser
...
Add Winget Releaser workflow
2023-09-01 20:01:02 +02:00
Martin Nordholts
48dc2b0d90
CICD: Add all-jobs
job
...
This opens up future possibilities:
* GitHub's auto-merge feature that merges a PR once CI passes
* Auto-merge of dependabot PRs that pass CI
But before we do any of that we need to have this new job active for a
while to see that it works.
2023-09-01 17:42:14 +02:00
sitiom
77069b368c
Update CICD.yml
2023-06-07 17:30:10 +08:00
Martin Nordholts
7639e8b406
CICD.yml: Run cargo audit
...
This CI check will fail if there are crates with known security vulnerabilities in Cargo.lock.
It will not fail because of warnings. We currently have two warnings.
Note that cargo-audit is installed by default on GitHub's Ubuntu
runners.
2023-05-24 05:43:36 +02:00
Ryan Caezar Itang
33997106da
Add Winget Releaser workflow
2023-03-28 08:32:51 +08:00
David Peter
87e87a349a
Extract crate metadata with cargo
2023-03-25 14:47:31 +01:00
David Peter
e49235e119
Minor CI improvements
2023-03-25 13:44:00 +01:00
Constantin Nickel
89c5683f8d
Use cargo's strip
option to remove symbols+debuginfo from the binaries
2023-03-16 16:34:44 +01:00
Constantin Nickel
52f6239d28
Fix jq
expression for retrieving rust-version
in MSRV build job
2023-03-15 23:36:22 +01:00
Constantin Nickel
40abebff8e
Get the MSRV for the build job from the package metadata
...
Co-authored-by: Martin Nordholts <enselic@gmail.com>
2023-03-15 06:55:19 +01:00
Constantin Nickel
3c59a4203c
Replace deprecated set-output
GitHub workflow command
...
The command is deprecated since Oct. 22 and is replaced by writing the
output variables into a file.
```
echo "NAME=${value}" >> $GITHUB_OUTPUT
```
2023-03-14 17:48:07 +01:00
Constantin Nickel
f0fe88a732
Replace unmaintained GitHub Actions
...
The unmaintained `actions-rs/*` actions are replaced with `dtolnay/rust-toolchain`,
`taiki-e/install-action` and plain cargo commands.
2023-03-14 17:47:54 +01:00
Martin Nordholts
ec6e9c29ac
Bump MSRV to 1.62 ( #2496 )
...
* Bump MSRV to 1.62
Mainly to be able to derive default enum variants.
* CHANGELOG.md: Update
2023-03-03 13:20:03 +01:00
Martin Nordholts
4e34b362f8
Require changes to -h
and --help
to be blessed
...
From now on, any changes to the help texts will be visible in PR diffs,
which will make it very easy to review, and very hard to accidentally
miss changes to help texts.
If a contributor makes a change to help texts, the `cargo test` failure
text they will see contains instructions on how to update the blessed
help texts:
error: expect test failed
--> ../doc/long-help.txt
You can update all `expect!` tests by running:
env UPDATE_EXPECT=1 cargo test
In short, to update blessed help texts, one simply does
env UPDATE_EXPECT=1 cargo test
Do not run the tests if the `git` feature is missing, since then
`--diff` will be missing from `--help`. And do not run the tests on
Windows, because then the help text will contain the term `.exe`.
Move man page step to after cargo doc step so that the man page exists
when we look for it.
2022-12-30 09:59:52 +01:00
dependabot[bot]
0cc4e98560
Bump actions/checkout from 2 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-03 22:41:07 +02:00
Gábor Lipták
9051fc5465
Add github-actions to Dependabot
...
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2022-10-03 21:42:03 +02:00
Martin Nordholts
2dd2994b2f
Merge remote-tracking branch 'origin/master' into feature/668/add-systemwide-config
2022-09-04 20:44:23 +02:00
David Peter
45d6b1af3b
Bump MSRV to 1.60
...
see https://github.com/rust-lang/git2-rs/issues/838
2022-09-04 06:04:35 +02:00
Martin Nordholts
621ab6078f
CI: Check MSRV without git feature enabled
...
git2-rs MSRV policy is to only support latest stable rust (see
https://github.com/rust-lang/git2-rs#rust-version-requirements ), so it
does not make sense to run our MSRV tests with git enabled.
2022-08-25 19:27:55 +02:00
David Peter
02a9d191ed
Bump MSRV to 1.58
2022-08-14 16:21:45 +02:00
Martin Nordholts
ab8f97b0bb
Bump MSRV to 1.56.1
...
This is what `hashbrown` did recently: https://github.com/rust-lang/hashbrown/pull/298
And it causes CI failures for us. Examples:
* https://github.com/sharkdp/bat/pull/2266
* https://github.com/sharkdp/bat/pull/2265
The path of least resistance for us is to also bump MSRV, so let's do
that. 1.56.1 was released [9 months
ago](https://blog.rust-lang.org/2021/11/01/Rust-1.56.1.html ).
2022-08-13 14:10:19 +02:00
David Peter
e9f8370b13
Refer to discussions page in issue templates.
2022-05-22 21:27:54 +02:00
David Peter
6db64cf050
Use cross to build x86_64-unknown-linux-gnu executables
...
We do this in order to link against older versions of glibc.
closes #2106
2022-05-16 21:54:36 +02:00
Martin Nordholts
719248f1c1
Simplify release-checklist.md by printing -h
, --help
and man
in CI ( #2183 )
...
* Simplify release-checklist.md by printing `-h`, `--help` and `man` in CI
Note that we run `find . -name bat.1` before we run anything with
`--all-features`, because `--all-features` is considered a separate
target, and so we will get a different (but identical) `bat.1`. For
example, we might have these:
./target/debug/build/bat-218e9538b4996215/out/assets/manual/bat.1
./target/debug/build/bat-89d6f56802af023f/out/assets/manual/bat.1
By showing the man page earlier, there is only one `bat.1` to pick from.
* Use plain `man $(find . -name bat.1)`
2022-05-06 07:33:32 +02:00
Martin Nordholts
3239d3be2a
bug_report.md template: Explicitly ask for steps
2022-04-20 07:53:03 +02:00
Martin Nordholts
19033d7315
bug_report.md template: Mention some already reported bugs
2022-04-20 07:53:03 +02:00
Patrick Pichler
6b660ef63a
Add test for systemwide config file support
...
There is now a new stage in the CICD workflow present, which will build
`bat` with the `BAT_SYSTEM_CONFIG_PREFIX` set to load the config file
from `/tests/examples/system_config/bat/config`, plus a basic set of
tests, to ensure the feature is working as expected. By default the
tests are set to ignored, as they need special setup before they can be
run.
2022-03-10 20:55:11 +01:00
Mahdi Dibaiee
6dc621ec18
Set minimum supported rust version to 1.51
2021-12-30 07:58:15 +01:00
Martin Nordholts
ce89fb2751
CICD: Add check for accidental inclusion of GPL:ed code
2021-11-28 21:04:37 +01:00
Martin Nordholts
043f3381b0
CICD: Make the 'cargo fmt' check a toplevel job ( #1883 )
...
Mainly to make it easier to see what went wrong when it fails.
If this ever gets of out sync with a particular Rust version, we can most likely
save the situation by introducing a `rustfmt.toml` file.
2021-10-04 08:08:14 +02:00
Martin Nordholts
418fce5683
Bump MSRV to 1.46
...
See #1874 and #1872 .
2021-10-03 07:51:37 +02:00