summaryrefslogtreecommitdiffstats
path: root/.github
AgeCommit message (Collapse)Author
2024-06-16ci: support aarch64 statically-linked binary (#2992)Tong Zhaoqi
2024-05-27Add support for Apple Silicon (#2967)someposer
2024-04-09Fix minor typo in GitHub Syntax Request Issue TemplateMichael Vorburger
2024-04-01Bump softprops/action-gh-release from 1 to 2 (#2917)dependabot[bot]
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-02-24Change CONTRIBUTING.md according to new changelog requirements (#2839)einfachIrgendwer0815
* 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>
2023-12-27Use proper Architecture for Debian packages built for muslMartin Nordholts
New values taken from dpkg-architecture -L
2023-12-01Use GitHub API to get correct PR submitter (#2791)cyqsimon
2023-11-03CI: add changelog check (#2766)cyqsimon
* 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-10-19Revert "Temporarily change dependabot to daily"Martin Nordholts
This reverts commit 86ac48d68efbc63ad4f1abe769e88ef55a96a42a.
2023-10-17Bump actions/checkout from 3 to 4 (#2719)dependabot[bot]
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-17Temporarily change dependabot to dailyMartin Nordholts
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-17Setup auto-merge of dependabot PRs that pass CIMartin Nordholts
2023-10-04Bump actions/checkout from 3 to 4dependabot[bot]
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-09-08#2592: Fixes unit tests dependent on echo on windows (#2602)Boy van Duuren
Co-authored-by: Boy van Duuren <boy.van.duuren@rabobank.nl>
2023-09-01Merge pull request #2519 from sitiom/winget-releaserDavid Peter
Add Winget Releaser workflow
2023-09-01CICD: Add `all-jobs` jobMartin Nordholts
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-06-07Update CICD.ymlsitiom
2023-05-24CICD.yml: Run cargo auditMartin Nordholts
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-03-28Add Winget Releaser workflowRyan Caezar Itang
2023-03-25Extract crate metadata with cargoDavid Peter
2023-03-25Minor CI improvementsDavid Peter
2023-03-16Use cargo's `strip` option to remove symbols+debuginfo from the binariesConstantin Nickel
2023-03-15Fix `jq` expression for retrieving `rust-version` in MSRV build jobConstantin Nickel
2023-03-15Get the MSRV for the build job from the package metadataConstantin Nickel
Co-authored-by: Martin Nordholts <enselic@gmail.com>
2023-03-14Replace deprecated `set-output` GitHub workflow commandConstantin Nickel
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-14Replace unmaintained GitHub ActionsConstantin Nickel
The unmaintained `actions-rs/*` actions are replaced with `dtolnay/rust-toolchain`, `taiki-e/install-action` and plain cargo commands.
2023-03-03Bump MSRV to 1.62 (#2496)Martin Nordholts
* Bump MSRV to 1.62 Mainly to be able to derive default enum variants. * CHANGELOG.md: Update
2022-12-30Require changes to `-h` and `--help` to be blessedMartin Nordholts
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-10-03Bump actions/checkout from 2 to 3dependabot[bot]
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-03Add github-actions to DependabotGábor Lipták
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2022-09-04Merge remote-tracking branch 'origin/master' into ↵Martin Nordholts
feature/668/add-systemwide-config
2022-09-04Bump MSRV to 1.60David Peter
see https://github.com/rust-lang/git2-rs/issues/838
2022-08-25CI: Check MSRV without git feature enabledMartin Nordholts
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-14Bump MSRV to 1.58David Peter
2022-08-13Bump MSRV to 1.56.1Martin Nordholts
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-05-22Refer to discussions page in issue templates.David Peter
2022-05-16Use cross to build x86_64-unknown-linux-gnu executablesDavid Peter
We do this in order to link against older versions of glibc. closes #2106
2022-05-06Simplify release-checklist.md by printing `-h`, `--help` and `man` in CI (#2183)Martin Nordholts
* 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-04-20bug_report.md template: Explicitly ask for stepsMartin Nordholts
2022-04-20bug_report.md template: Mention some already reported bugsMartin Nordholts
2022-03-10Add test for systemwide config file supportPatrick Pichler
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.
2021-12-30Set minimum supported rust version to 1.51Mahdi Dibaiee
2021-11-28CICD: Add check for accidental inclusion of GPL:ed codeMartin Nordholts
2021-10-04CICD: Make the 'cargo fmt' check a toplevel job (#1883)Martin Nordholts
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-03Bump MSRV to 1.46Martin Nordholts
See #1874 and #1872.
2021-10-02Add bash completion to deb packageKuan-Yi Li
From the discussion in #1734, instead of using `env.PROJECT_NAME`, `steps.strip.outputs.BIN_NAME` could potentially be a better choice as the filename needs to match the called executable for bash-completion's on demand loading to work. This `BIN_NAME` needs to stay in sync with `env.PROJECT_EXECUTABLE` which is replaced in the template, but not available for the deb build at this stage. Follow the same route as for the fish/zsh completions for now for the sake of consistency. Closes #1733
2021-09-07Add regression testing for the custom assets functionality (#1829)Martin Nordholts
The test is following the same steps regular users are instructed to follow: https://github.com/sharkdp/bat/blob/master/README.md#adding-new-syntaxes--language-definitions
2021-09-03CICD: Put documentation testing in its own job (#1831)Martin Nordholts
For increased parallelization and thus a faster CICD pipeline.
2021-08-29CICD: Sort build matrix by targetMartin Nordholts
2021-08-29CICD: Remove disabled windows-2019 i686-pc-windows-gnu from build matrixMartin Nordholts
It just messes up alignment. Nothing gets better by keeing it around.