summaryrefslogtreecommitdiffstats
path: root/.github
AgeCommit message (Collapse)Author
2021-05-12Upgrade to GitHub-native Dependabotdependabot-preview[bot]
2021-05-12CI: check docs (#1612)Marco Ieni
2021-03-08CICD: Remove explicit allow of clippy::match_bool since MSRV 1.45 bumpMartin Nordholts
Now that we are on MSRV 1.45, there is no need to "backport" the change that reclassified clippy::match_bool as "pedantic".
2021-03-07Update dependencies, MSRV: 1.45David Peter
2021-03-01Update bug report issue template (--diagnostic option)David Peter
2021-02-28CICD: Add workflow_dispatch to enable manual buildsMartin Nordholts
Which is useful when you want to test a fix without creating a PR for it.
2021-02-22CICD: Don't run jobs twice in PRsMartin Nordholts
Without this change, creating a PR triggers all jobs to run twice. Once due to a push event and once due to a pull_request event. Change to only trigger jobs due to push when pushing a tag or to the master branch, to avoid duplicate jobs for each PR.
2021-02-21CICD: Build step namingDavid Peter
2021-02-21CICD: Improved job namesDavid Peter
2021-02-21CICD: Remove code coverage computationDavid Peter
2021-02-18CICD: Build: Rename 'Check is release' step to 'Check for release'Martin Nordholts
To get a name that sounds like proper English.
2021-02-18CICD: Build: Add separate 'Calculate test options' stepMartin Nordholts
And move it down to right before it is needed, to reduce its scope. For #1474
2021-02-18CICD: Build: Check IS_RELEASE in separate stepMartin Nordholts
And move it closer to where it is actually needed, to reduce its scope. For #1474
2021-02-18CICD: Build: Remove unused ${{ matrix.job.cargo-options }} expansionsMartin Nordholts
2021-02-16CICD: Build: Use package-specific staging dirMartin Nordholts
A common staging dir confuses more than it helps, so let each package step take care of its own staging dir. For #1474
2021-02-16CICD: Build: Introduce and use new 'Strip release bin' stepMartin Nordholts
So that we don't have to duplicate that logic in both 'Debian package' and 'Package' steps. For #1474
2021-01-11CICD: Build: Move PKG_* vars to 'Package' stepMartin Nordholts
For improved modularization of CICD script. For #1474
2021-01-11CICD: Build: Move DPKG_* vars to 'Debian package' stepMartin Nordholts
For cleaner CICD script. Note that we can't use outputs defined in our own step, so also change to shell vars intead. For #1474
2021-01-11CICD: Build: Split out dir creation into the individual package stepsMartin Nordholts
It's cleaner because we can reuse helper vars and create the dirs closer in time to when they are needed. For #1474
2021-01-11Fix typo in bug report templateKeith Hall
2021-01-10CICD: Build: Split up into separate 'Debian package' stepMartin Nordholts
Make sure to ignore whitespace changes when diffing. For #1474
2021-01-10Explicitly allow clippy::match_bool until we bump MSRVMartin Nordholts
Since we run clippy on Rust 1.42.0 we still get warnings about the presence of clippy::match_bool lints. That lint has been moved from 'Style' to 'Pedantic' in Rust 1.45.0 and onwards however, so let's silent it in our clippy runs too.
2021-01-10CICD: simply use 'sed' to extract crate informationsharkdp
2021-01-10Use cache for faster installsharkdp
2021-01-10CICD: Use 'cargo get' to extract crate metadatasharkdp
2021-01-10CICD: Build: DEPLOY -> IS_RELEASE and inline itMartin Nordholts
This simplifies and clarifies the script. For #1474
2021-01-10CICD: Build: Adapt release version regex to batMartin Nordholts
All bat tags begin with a small 'v', so no need for a generic pattern in the CI script. This will also help us ensure we keep the same format on future tags.
2021-01-10CICD: Build: Always build and upload Debian packagesMartin Nordholts
Not only when a release tag is pushed. Also publish these Debian packages as artifacts. This makes PR workflows more similar to release work flows, and reduces risk of build system regressions that we don't detect until we make a new release. For #1474
2021-01-10CICD: Build: Use Cargo.toml version instead of tagMartin Nordholts
This enables us to later always build Debian packages. If you try to use a git sha as Debian package version you will get an error: dpkg-deb: error: parsing file '_staging/dpkg/DEBIAN/control' near line 2 package 'bat': error in 'Version' field string 'd2963ce4': version number does not start with digit so we need to use a version that is always available. We duplicate the bat version in another place here which is a bit bad, but it is already duplicated a lot, so we don't make things significantly worse. It is still kind of nice to not have to figure out a good and robust way to parse out the version from Cargo.toml in the CI script. For #1474
2021-01-10CICD: Use fixed OS versions instead of 'latest' onesMartin Nordholts
This reduces the risk of the build suddenly breaking, and fixes this current warning: Ubuntu-latest workflows will use Ubuntu-20.04 soon. For more details, see https://github.com/actions/virtual-environments/issues/1816 I've use the mapping found at https://github.com/actions/virtual-environments, so there should be no actual change in OS versions, only semantically so.
2021-01-09Enable clippy::style checkssharkdp
2021-01-09Addressed PR feedback. Upped min version and used matches! macromark chaitin
2021-01-09CICD: Build: Make 'Upload build artifacts' more like deployMartin Nordholts
The end goal is to upload the same artifacts for a PR as we deploy during a release, to make a regular PR pipeline as similar as possible to a deploy. The first step is to move 'Upload build artifacts' to after 'Package' so we can upload the same files. Also change the name and artifacts to be more similar to what we deploy for a release. For #1474
2021-01-09CICD: Build: Stop building on Ubuntu 16.04Martin Nordholts
End-of-life is in three months, and we already do the same build on Ubuntu 18.04.
2021-01-09CICD: Build: Add and use disable-deploy matrix varMartin Nordholts
This results in a nicer workflow file that is easier to follow. Also remove the unneccesary doc row that repeats what is already in the matrix and that is annoying to keep up to date. For #1474
2021-01-08CICD: Build: Remove unused JOB_DO_TESTING var and outputMartin Nordholts
It is CARGO_TEST_OPTIONS that is used to control testing on cross-compiled builds, so we can remove JOB_DO_TESTING. For #1474
2021-01-08CICD: Build: Remove unused PKG_suffix output varMartin Nordholts
Only the env var is used, so output variant is not needed. For #1474
2021-01-08CICD: Build: Remove unused TARGET_* vars and outputsMartin Nordholts
For #1474
2021-01-07CICD: Build: Use matrix.job.use-cross directlyMartin Nordholts
There is no need for a var and set-output detour.
2021-01-07CICD: Build: Remove unused REF_* outputsMartin Nordholts
There is no usage of `steps.vars.outputs.REF_*` so no need to setup such things. Also remove setting up REF_NAME and REF_BRANCH env vars, since they are never read.
2021-01-06CICD: Build: Remove conditional TOOLCHAIN logicMartin Nordholts
because we always use "stable". If we need to go back to using matrix.job.toolchain, we should do it like in jobs.coverage, instead of messing about with vars and outputs.
2021-01-06CICD: Build: Enable x86_64-pc-windows-gnu againMartin Nordholts
All the referenced issues [1] have been Closed, so use "stable" for everything. Now `i686-w64-mingw32-gcc` fails with this instead error: linker `i686-w64-mingw32-gcc` not found so keep it disabled. There is probably a simple solution for this that is obvious to someone used to cross-compiling Rust programs on Windows... [1] https://github.com/rust-lang/rust/issues/47048 https://github.com/rust-lang/rust/issues/53454 https://github.com/rust-lang/cargo/issues/6754
2021-01-06Add --diagnostic run to CIsharkdp
2021-01-06CICD: Code Coverage: Explain why disabledMartin Nordholts
2021-01-06CICD: Code Coverage: Disable for nowMartin Nordholts
2021-01-06CICD: Remove use-cross when host == targetMartin Nordholts
2021-01-06CICD: Remove duplicate set-output calls (#1479)Martin Nordholts
The ::set-output syntax is the correct one according to https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-output-parameter, so remove duplicates without that syntax.
2021-01-06CICD: Code Coverage: Use matrix.job.toolchain directlyMartin Nordholts
No need for complicated var and set-output logic when we can simply use matrix.job.toolchain directly.
2021-01-03Update formattingsharkdp
2021-01-03Move "diagnostics" part to the bottom of the bug report templateDavid Peter