Commit graph

289 commits

Author SHA1 Message Date
Joining7943 782b9be099 cicd: Fix #4322 toochain overrides must begin with +. Do not self-update rustup. 2023-02-06 16:40:40 +01:00
Roy Ivy III 9b440dfab6 maint/CICD ~ refactor var names 2023-01-21 23:39:05 -06:00
Roy Ivy III f4086f237f maint/CICD ~ re-label bash script steps for easier review 2023-01-21 23:39:05 -06:00
Roy Ivy III 6f5f3736ce docs ~ update spell-checker exceptions 2023-01-21 23:39:05 -06:00
Roy Ivy III f0ce605f4b maint/CICD ~ improve/update outputs() function 2023-01-21 23:39:05 -06:00
Roy Ivy III 0b4ef62eed maint/CICD ~ refactor to standard use of outputs() 2023-01-21 23:39:05 -06:00
Roy Ivy III 80a9eaf8ab maint/CICD ~ normalize to use expanded 10 digit SHAs 2023-01-21 23:39:05 -06:00
Joining7943 ccfc799b46 CI/tests: Run cargo test with RUST_BACKTRACE=1 2023-01-01 18:36:02 +01:00
Terts Diepraam 01153a701f
Merge pull request #4222 from sylvestre/toybox
Run the toybox testsuite
2022-12-10 11:04:35 +01:00
Sylvestre Ledru d453f909e8 Run toybox in the CI 2022-12-07 15:41:21 +01:00
Sylvestre Ledru 20f6b6d0c5
Fix the # of SKIP 2022-12-06 10:45:28 +01:00
Sylvestre Ledru c132535cf5 busybox: replicate the same output as GNU 2022-12-06 08:52:05 +01:00
Sylvestre Ledru 2efda01c37
busybox: remove the warning in the CI 2022-12-05 08:47:55 +01:00
Sylvestre Ledru c432c77233 move the cache earlier 2022-12-04 23:59:21 +01:00
Sylvestre Ledru 9ab9ec7fc5 extract and store busybox results 2022-12-04 23:59:18 +01:00
Sylvestre Ledru cc79be035a busybox: Add the file at the right place 2022-12-04 16:39:51 +01:00
Daniel Hofstetter 05d12892f3 CI: enable manual_string_new lint 2022-12-01 13:49:23 +01:00
Miles Liu 9e8c422b3f
CI: increase the FreeBSD memory limit to 4096 2022-11-20 19:58:07 +08:00
Miles Liu 584f3cd0b2 CI: replace actions-rs/install with cargo install 2022-11-19 16:28:08 +01:00
Miles Liu 418fe6d758 CI: remove use of actions-rs/toolchain 2022-11-19 16:28:08 +01:00
Miles Liu af7e4180ec CI: remove use of actions-rs/cargo 2022-11-19 16:28:08 +01:00
Miles Liu 61b7ff8116 CI: resolve rust-cache misplacement and cache conflict 2022-11-19 16:28:08 +01:00
Miles Liu b641aa36e6
CI: fix "uucore no unix feature" on freeBSD 2022-11-19 00:05:37 +08:00
Miles Liu a446324681
CI: fix /dev/fd errors on FreeBSD 2022-11-19 00:05:37 +08:00
Miles Liu 3d51291685
CI: fix FreeBSD CI passed when tests failed 2022-11-19 00:04:34 +08:00
dependabot[bot] f8e2be57dd
build(deps): bump Swatinem/rust-cache from 1 to 2
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache) from 1 to 2.
- [Release notes](https://github.com/Swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Swatinem/rust-cache/compare/v1...v2)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-18 06:06:30 +00:00
Sylvestre Ledru 69962250ff coverage: rename the arg to match a change in grcov
See https://github.com/mozilla/grcov/pull/893
2022-11-12 08:54:34 +01:00
Sylvestre Ledru 7ecddd1f5b
CI: fix a typo 2022-11-06 21:56:59 +01:00
Sylvestre Ledru afa3e84d94 Replace set-output by the GITHUB_OUTPUT variable
See: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-11-03 08:25:47 +01:00
dependabot[bot] 7b88276462
build(deps): bump vmactions/freebsd-vm from 0.2.9 to 0.3.0
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) from 0.2.9 to 0.3.0.
- [Release notes](https://github.com/vmactions/freebsd-vm/releases)
- [Commits](https://github.com/vmactions/freebsd-vm/compare/v0.2.9...v0.3.0)

---
updated-dependencies:
- dependency-name: vmactions/freebsd-vm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-03 06:05:35 +00:00
Terts Diepraam f8f3ae3c65 bump msrv to 1.60 2022-10-12 12:09:28 +02:00
Terts Diepraam adf4bab03c tests: do not generate module structure in build.rs
Generating the tests to run in build.rs created problems for tooling. For example, cargo fmt, was ignoring the test_*.rs files and needed to be passed these files manually to be formatted. Now we simply use the feature mechanism to decide which tests to run.
2022-10-05 13:30:22 +02:00
dependabot[bot] 78994824f8
build(deps): bump vmactions/freebsd-vm from 0.2.6 to 0.2.9
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) from 0.2.6 to 0.2.9.
- [Release notes](https://github.com/vmactions/freebsd-vm/releases)
- [Commits](https://github.com/vmactions/freebsd-vm/compare/v0.2.6...v0.2.9)

---
updated-dependencies:
- dependency-name: vmactions/freebsd-vm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-03 06:46:23 +00:00
Alex 1138c906fe build: harden CICD.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-09-25 16:30:33 +02:00
Sylvestre Ledru 6c8dab38b8
Merge pull request #3925 from uutils/dependabot/github_actions/vmactions/freebsd-vm-0.2.6
build(deps): bump vmactions/freebsd-vm from 0.2.4 to 0.2.6
2022-09-12 15:27:19 +02:00
Hanif Bin Ariffin fd9d49d1b2 cargo-tree is already part of cargo. Use that instead
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
2022-09-12 19:22:33 +08:00
dependabot[bot] b624b054be
build(deps): bump vmactions/freebsd-vm from 0.2.4 to 0.2.6
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) from 0.2.4 to 0.2.6.
- [Release notes](https://github.com/vmactions/freebsd-vm/releases)
- [Commits](https://github.com/vmactions/freebsd-vm/compare/v0.2.4...v0.2.6)

---
updated-dependencies:
- dependency-name: vmactions/freebsd-vm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 07:49:07 +00:00
Sylvestre Ledru e8ea75fc23 bump the Minimum Supported Rust Version to 1.59.0
Needed for os_str_bytes & time:

```
error: package `os_str_bytes v6.3.0` cannot be built because it requires rustc 1.57.0 or newer, while the currently active rustc version is 1.56.1
error: package `time v0.3.14` cannot be built because it requires rustc 1.59.0 or newer, while the currently active rustc version is 1.56.1
```
2022-09-07 21:26:06 +02:00
Sylvestre Ledru 6b8b8a1ee7 docker: Mount some volumes when building with cross
Many thanks to Aleksandr Chebotov for the help
2022-09-04 23:35:34 +02:00
dependabot[bot] 4f967de2eb
build(deps): bump vmactions/freebsd-vm from 0.2.3 to 0.2.4
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/vmactions/freebsd-vm/releases)
- [Commits](https://github.com/vmactions/freebsd-vm/compare/v0.2.3...v0.2.4)

---
updated-dependencies:
- dependency-name: vmactions/freebsd-vm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-29 06:41:02 +00:00
Niyaz Nigmatullin 13b6979dad CI: add timeouts 360 minutes -> 90 minutes, some Windows runs sometimes hang 2022-08-21 15:55:41 +03:00
Niyaz Nigmatullin 37b7375dae CI: add timeout to freebsd and android tests, since it sometimes hangs 2022-08-17 22:09:56 +03:00
Sylvestre Ledru c660fc700f
Merge pull request #3757 from cakebaker/clap_update
bump clap from 3.1.18 to 3.2.15
2022-08-02 09:56:01 +02:00
Daniel Hofstetter fc4544c42b bump clap from 3.1.18 to 3.2.15 2022-07-29 14:05:02 +02:00
dependabot[bot] e7cde6a3b9
build(deps): bump vmactions/freebsd-vm from 0.2.1 to 0.2.3
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) from 0.2.1 to 0.2.3.
- [Release notes](https://github.com/vmactions/freebsd-vm/releases)
- [Commits](https://github.com/vmactions/freebsd-vm/compare/v0.2.1...v0.2.3)

---
updated-dependencies:
- dependency-name: vmactions/freebsd-vm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-29 06:33:48 +00:00
dependabot[bot] c49aa606f4
build(deps): bump vmactions/freebsd-vm from 0.2.0 to 0.2.1
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/vmactions/freebsd-vm/releases)
- [Commits](https://github.com/vmactions/freebsd-vm/compare/v0.2.0...v0.2.1)

---
updated-dependencies:
- dependency-name: vmactions/freebsd-vm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-28 06:58:02 +00:00
dependabot[bot] 7948cb7924
build(deps): bump vmactions/freebsd-vm from 0.1.9 to 0.2.0
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) from 0.1.9 to 0.2.0.
- [Release notes](https://github.com/vmactions/freebsd-vm/releases)
- [Commits](https://github.com/vmactions/freebsd-vm/compare/v0.1.9...v0.2.0)

---
updated-dependencies:
- dependency-name: vmactions/freebsd-vm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 06:45:20 +00:00
Sylvestre Ledru 5eafcc4801
Use macos-12 for freebsd hosts 2022-07-19 14:04:03 +02:00
Sylvestre Ledru ce12dec5c9
freebsd-vm - update to 0.1.9 2022-07-18 16:17:20 +02:00
dependabot[bot] 04ddf559ec build(deps): bump vmactions/freebsd-vm from 0.1.7 to 0.1.8
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) from 0.1.7 to 0.1.8.
- [Release notes](https://github.com/vmactions/freebsd-vm/releases)
- [Commits](https://github.com/vmactions/freebsd-vm/compare/v0.1.7...v0.1.8)

---
updated-dependencies:
- dependency-name: vmactions/freebsd-vm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-18 12:12:19 +02:00
dependabot[bot] 2e39f6faf2
build(deps): bump vmactions/freebsd-vm from 0.1.6 to 0.1.7
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) from 0.1.6 to 0.1.7.
- [Release notes](https://github.com/vmactions/freebsd-vm/releases)
- [Commits](https://github.com/vmactions/freebsd-vm/compare/v0.1.6...v0.1.7)

---
updated-dependencies:
- dependency-name: vmactions/freebsd-vm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-13 06:41:10 +00:00
Sylvestre Ledru 37b754f462
Build & install grcov ourselves + force the version of crossbeam-epoch (#3702)
Fixes:
https://github.com/uutils/coreutils/issues/3680
https://github.com/mozilla/grcov/issues/849
2022-07-07 15:21:39 +02:00
Sylvestre Ledru c2d1d061ef Pin the cross version in the ci (Closes: #3683) 2022-06-29 17:53:08 +02:00
Sylvestre Ledru 1bd5014235
Coverage jobs should start at the same time as others
No need to wait for the regular builds
esp as they might have intermittent
2022-06-22 22:43:16 +02:00
Sylvestre Ledru 8b1236c081
github: continue the other coverage jobs if one fails 2022-06-06 21:21:19 +02:00
dependabot[bot] 5d628310fc
build(deps): bump vmactions/freebsd-vm from 0.1.5 to 0.1.6
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) from 0.1.5 to 0.1.6.
- [Release notes](https://github.com/vmactions/freebsd-vm/releases)
- [Commits](https://github.com/vmactions/freebsd-vm/compare/v0.1.5...v0.1.6)

---
updated-dependencies:
- dependency-name: vmactions/freebsd-vm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 06:45:15 +00:00
Sylvestre Ledru 6f5d5aa456
Merge pull request #3492 from uutils/dependabot/github_actions/codecov/codecov-action-3
build(deps): bump codecov/codecov-action from 1 to 3
2022-05-12 08:40:16 +02:00
Sylvestre Ledru 91653fff28
Merge pull request #3494 from uutils/dependabot/github_actions/actions/cache-3
build(deps): bump actions/cache from 2 to 3
2022-05-12 08:39:40 +02:00
Sylvestre Ledru a3e4f7d375
Merge pull request #3495 from uutils/dependabot/github_actions/actions/checkout-3
build(deps): bump actions/checkout from 2 to 3
2022-05-12 08:36:50 +02:00
dependabot[bot] 28c6403ffa build(deps): bump actions/upload-artifact from 2 to 3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-11 12:59:21 +02:00
dependabot[bot] fd057574d7 build(deps): 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-05-11 12:59:18 +02:00
dependabot[bot] 372d460d7a build(deps): bump actions/cache from 2 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-11 12:59:15 +02:00
dependabot[bot] eeec680c37 build(deps): bump codecov/codecov-action from 1 to 3
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 3.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v1...v3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-11 12:59:08 +02:00
Sylvestre Ledru 3a576f2441 time: Various fixes 2022-05-01 17:00:35 +02:00
Sylvestre Ledru f810b55d86 build in verbose mode (cfg isn't used) 2022-05-01 17:00:35 +02:00
Justin Tracey 4caeb2ff1d add Android to CICD 2022-04-20 08:44:49 +02:00
Sylvestre Ledru 2bed02b70a Revert the force set of the rustc nightly version 2022-04-13 11:57:11 +02:00
Terts Diepraam aae298f9a4 Don't pass features when testing individual utils in uucore 2022-04-06 23:23:47 +02:00
Terts Diepraam 31faf86cdb Don't provide features for testing individual utilities
With the Rust 2021 feature resolver, adding a feature like `--features=feat_os_unix` results in an error, because the individual crates do not have that feature.
2022-04-06 11:49:00 +02:00
Terts Diepraam 3629421e17 Bump MSRV to 1.56 2022-04-02 15:18:34 +02:00
Sylvestre Ledru 9e86e56668
Remove a comment to retrigger the CI 2022-03-25 15:28:45 +01:00
Sylvestre Ledru 22e06c2458 also fix coverage 2022-03-25 12:06:41 +01:00
Sylvestre Ledru c4d89ab146 ci try to fix the error ? 2022-03-25 11:01:05 +01:00
Sylvestre Ledru 2acac0d558 CI: Force the rustc nightly version to fix issue 3305 2022-03-25 09:41:01 +01:00
Terts Diepraam cf4a0fa5c8 also run unittests in codecov 2022-03-19 22:21:28 +01:00
Terts Diepraam 971f817a95 fix unittests not running in CI 2022-03-19 09:30:49 +01:00
Benjamin Bouvier 323f0ef993 Setup cargo-deny in CI too 2022-03-18 20:44:01 +01:00
Sylvestre Ledru a5948ce11b
Merge pull request #3155 from jtracey/gecos-off-by-one
pinky: fix off-by-one in GECOS parsing
2022-03-17 13:35:05 +01:00
Sylvestre Ledru 0571434a75 ci: rename of the tracking size field to match the tracking project 2022-03-13 21:03:40 +01:00
Sylvestre Ledru a22709aedd CI: Disable Windows job i686-pc-windows-gnu
Fails with:
error: linker `i686-w64-mingw32-gcc` not found
And the Windows GNU is covered by x86_64-pc-windows-gnu anyway
2022-03-08 22:57:32 +01:00
Sylvestre Ledru 9f5fad1e38 add a job to build with rust nightly 2022-03-08 22:57:32 +01:00
Sylvestre Ledru 2a48234c12 add a job to build with rust stable 2022-03-08 22:57:32 +01:00
Sylvestre Ledru e3649e33c5 remove old comment 2022-03-08 22:57:32 +01:00
Sylvestre Ledru f896834c77 Use min rust version as default 2022-03-08 22:57:28 +01:00
Justin Tracey f52f655934 pinky: improve tests 2022-03-07 12:32:07 -05:00
Sylvestre Ledru 91852d9768
Update to ubuntu latest until https://github.com/uutils/coreutils/issues/3210 is fixed 2022-03-04 12:52:57 +01:00
Sylvestre Ledru 83d2f550ab try to use rust-cache on github action to build faster 2022-02-19 21:26:34 +01:00
Roy Ivy III f75cfbdebc docs ~ (CICD/util) add/revise spell-checker exceptions 2022-02-12 15:26:59 -06:00
Roy Ivy III cc61ea807e docs/CICD ~ add spell-checker exceptions 2022-02-05 14:21:15 -06:00
Roy Ivy III caad4db712 maint/CICD ~ add MSRV check for '.clippy.toml' 2022-02-03 15:00:05 -06:00
Sylvestre Ledru a20bf22592
Merge pull request #2974 from sylvestre/ci-size
Run the release builds and store the size
2022-01-30 22:17:05 +01:00
Sylvestre Ledru 90949ae045 Run the release builds and store the size 2022-01-30 19:58:47 +01:00
Sylvestre Ledru 6112ac5750 ci: Remove the sphinx legacy 2022-01-30 19:50:59 +01:00
Sylvestre Ledru 170975aeaa run the build of the doc in the ci 2022-01-29 00:35:14 +01:00
Terts Diepraam 783170c9d8 change msrv to 1.54 2022-01-15 11:08:07 +01:00
Roy Ivy III cd79bc49bc maint/CICD ~ ignore 'vendor' for CodeCov 2022-01-01 17:50:30 -06:00
Roy Ivy III 790884b177 maint/CICD ~ add dependencies between CI job steps (using 'needs')
- the build and test steps won't run until/unless Dependency and MSRV checks pass
- code coverage won't run until/unless the build steps all pass

## [why]

This helps make more efficient use of CI resources and can help more easily visualize
build issues from the resultant GHA dashboard flow diagram.
2021-11-19 18:04:55 -06:00
Roy Ivy III 39a6e6c75b maint/CICD ~ (GHA) normalize setup sub-step ordering 2021-11-19 17:55:02 -06:00
Roy Ivy III 047c17dd31 maint/CICD - (GHA) standardize job step ordering (install, vars, prereq, toolchain, ...) 2021-11-19 17:55:02 -06:00
Roy Ivy III 0b10e69f56 maint/CICD ~ (GHA) repair broken cspell by pinning it to version v4.2.8
## [why]

`cspell` in CI started mysteriously failing mid-2021. Tracking down the
error took some time as it was not obvious from `cspell` feedback where
the issue lay. Ultimately, it was discovered that `cspell` had deprecated
use on NodeJS versions < v12 for `cspell` v5+.

`cspell` is now pinned to v4.2.8, with a maintenance note to allow an
upgrade to the `cspell` version when a version of NodeJS >= v12 is being
used in the CI.

An issue requesting better tool feedback for similar situations was also
opened on the `cspell` repo.[*]

[*]: [🙏🏻 Add warning (or error) when used on deprecated/outdated JS platform versions](https://github.com/streetsidesoftware/cspell/issues/1984)
2021-11-19 17:55:02 -06:00
Roy Ivy III aba1c8f596 maint/CICD ~ (GHA) disable tool cache use for 'action-rs/install'
# [why]

The tool cache is currently failing and seems to be getting further behind current
versions. The [actions-rs/install#12] issue addresses this but seems to be
languishing without any proposed solution.

[ref]: <actions-rs/install#12>
2021-11-19 17:55:02 -06:00
Roy Ivy III 12419b3ee2 maint/CICD ~ (GHA) reform 'unused dependency check' (cargo udeps ...) into a style warning 2021-11-19 17:55:02 -06:00
Roy Ivy III a6635d62c7 maint/CICD ~ (GHA) use 'feat_os_unix' consistently for ubuntu jobs 2021-11-19 17:55:01 -06:00
Roy Ivy III 37a3c68f3a maint/CICD ~ (GHA) add style fault configurability (fail vs warn)
- add individual job-step control for 'style' step faults (build failure vs only a warning)
2021-11-19 17:55:01 -06:00
Roy Ivy III c951806e70 maint/CICD ~ (GHA) fix cargo clippy lint
- fixes conversion of new `cargo clippy` output style to GHA annotations

## [why]

`cargo clippy` output formatting changed, using relative instead of absolute paths.
2021-11-19 17:55:01 -06:00
Sylvestre Ledru c0af58881e remove some unused codecov declarations 2021-11-16 10:10:30 +01:00
Tom Parker-Shemilt 0c33905e60 Fix FreeBSD build by downgrading MacOS version 2021-11-02 18:56:01 +00:00
Sylvestre Ledru 7eaae75bfc add a github action job to identify unused deps 2021-09-15 12:06:50 +02:00
Sylvestre Ledru 7acdf31e2b freebsd: also fails the script when the tests fail 2021-09-05 18:54:43 +02:00
Michael Debertol 1e78a40e20 CICD: use nightly rust for code coverage 2021-08-30 23:13:31 +02:00
Sylvestre Ledru 3ed74df4a6 Update to freebsd-vm@v0.1.5 2021-08-29 18:35:08 +02:00
Jan Verbeek ea16cc72c7
Make clippy workspace selection more finegrained (#2598)
* Make clippy workspace selection more finegrained

* fixup! Make clippy workspace selection more finegrained

* fixup! Make clippy workspace selection more finegrained

* fixup! Make clippy workspace selection more finegrained

* fixup! Make clippy workspace selection more finegrained

* fixup! Make clippy workspace selection more finegrained
2021-08-25 01:41:25 +02:00
Jan Verbeek d06c074829 Run clippy on the full workspace
These lints were cluttering up the "problems" tab in my VS
Code. `--workspace` fixes the disparity.
2021-08-24 17:10:16 +02:00
Sylvestre Ledru 86c610a84b enable freebsd in the CI on gh actions
and use --features feat_os_unix (wasn't done before)
2021-08-24 09:32:18 +02:00
Jan Scheer 010565c8fb
Merge branch 'master' into id_selinux_context 2021-08-02 10:40:45 +02:00
Sylvestre Ledru f34505df54 bump the minimal version for coverage to 1.52
Drivers:
https://github.com/rust-lang/rust/issues/71395
https://github.com/rust-lang/rust/pull/80470
needed by grcov
2021-07-30 14:54:45 +02:00
Jan Scheer 6111cd6e1b
id: add note about conditional compiling to README section 2021-07-13 14:38:46 +02:00
Jan Scheer 7abc6a665e
id: add conditional compilation for selinux 2021-07-13 00:22:10 +02:00
Jan Scheer e53f4db33a Merge branch 'master' into id_selinux_context 2021-07-06 13:29:50 +02:00
Sylvestre Ledru bd0ca4513e
update min rust to 1.51
Co-authored-by: Roy Ivy III <rivy.dev@gmail.com>
2021-06-27 07:52:07 +02:00
Roy Ivy III 42fed9186d maint/docs ~ add ToDO for change from cargo-tree to cargo tree 2021-06-23 12:03:35 -05:00
Roy Ivy III 17a959853e maint/CICD ~ suppress useless rustup notices 2021-06-23 10:05:49 -05:00
Roy Ivy III 8884666ce0 maint/CICD ~ fix dependency display errors (relax network lockout) 2021-06-23 10:00:27 -05:00
Jan Scheer f1d317147b id: add support for showing SELinux context (--context/-Z) 2021-06-20 13:44:41 +02:00
Roy Ivy III b4a06cfdba maint/CICD ~ refactor; improve logging for outputs shell script 2021-06-19 18:40:22 -05:00
Roy Ivy III 92630a0690 maint/CICD ~ (GHA) add 'Style/dependencies' checks 2021-06-19 18:37:13 -05:00
Roy Ivy III db621c7d7a maint/CICD ~ (GHA) change/refactor CICD (convert most warnings to errors)
- adds additional instruction to error message showing how to fix the error
2021-06-19 18:37:13 -05:00
Roy Ivy III 298851096e maint/CICD ~ (GHA) remove deprecated 'ubuntu-16.04' environment 2021-06-19 18:37:13 -05:00
Sylvestre Ledru 90bf26a51c maint/CICD ~ (GHA) update to checkout@v2 2021-06-19 18:37:13 -05:00
Jan Scheer 54cbb69d37 id/tests: fix tests if run on macOS 2021-06-16 19:16:29 +02:00
Roy Ivy III 2ff46a78b1 maint/CICD ~ summarize BusyTest output for dashboard 2021-06-06 19:28:25 -05:00
Roy Ivy III c192550f22 refactor ~ polish spelling + add spelling exceptions 2021-06-06 19:28:22 -05:00
Roy Ivy III 114844d9cd maint/CICD ~ refactor; use a shell script (outputs) for step outputs 2021-06-06 19:17:18 -05:00
Roy Ivy III 4d5880f098 maint/CICD ~ temporarily disable failing tool cache for actionrs/install
# [why]

The tool cache is currently failing and seems to be getting further behind current
versions. The [actions-rs/install#12] issue addresses this but seems to be
languishing without any proposed solution.

[ref]: <https://github.com/actions-rs/install/issues/12>
2021-06-06 19:16:50 -05:00
Michael Debertol 8de42ed18e maint: actually run spellcheck on all files
**/* must be quoted, otherwise it is expanded by the shell and not
literally passed to cspell.
2021-05-31 22:40:12 +02:00
Roy Ivy III 691f03b9ae maint/CICD ~ improve visibility of spell check during testing 2021-05-31 08:23:58 -05:00
Roy Ivy III c392cd1cb4 maint/CICD ~ cspell-check all repository files 2021-05-31 08:23:58 -05:00
Roy Ivy III 3140be7c1b docs/CICD ~ add spell-checker exceptions 2021-05-31 08:23:58 -05:00
Jan Scheer 141a92c965 CI: set clippy targets to 'all' 2021-05-30 10:13:31 +02:00
Sylvestre Ledru 6e1a68ce9a
Merge pull request #2298 from jhscheer/fix_clippy
Major clippy overhaul.
2021-05-29 23:23:26 +02:00
Michael Debertol 4058caa3e6 maint: add spell checker to CICD 2021-05-29 22:30:02 +02:00
Jan Scheer 52ea9c4a48 CI: set MSRV and "--target" for clippy
* add "clippy.toml" in order to set MSRV for clippy linting
    this works only if clippy is invoked with "+nightly"
* add "--target" to clippy in order to also lint tests
2021-05-29 14:21:32 +02:00
Terts Diepraam 052ee22ce0 Bump MSRV to 1.43.1 2021-05-27 18:20:15 +02:00
Sylvestre Ledru 1860e61f83 Workaround the Windows CI install issue.
Fails trom time to time with:
```
info: installing component 'rustc'
memory allocation of 16777216 bytes failed
Error: The process 'C:\Rust\.cargo\bin\rustup.exe' failed with exit code 3221226505
```

on  Build (windows-latest, i686-pc-windows-gnu, feat_os_windows)
2021-05-23 10:35:46 +02:00
Jan Scheer 6ed080cf97 CICD: install GNU coreutils on macOS (Code Coverage) 2021-05-21 12:39:48 +02:00
Jan Scheer dc93f29fe3 CICD: install GNU coreutils on macOS 2021-05-17 22:22:18 +02:00
ReggaeMuffin 3bfb1afe5c
uucore: Start testing uucore
Before this change we never ran tests on uucore itself
meaning that is was not possible to test
functions of the shared core, only their usage
in the different binaries

This change adds running uucore to our ci, which will increase coverage for the few doctests that exist

and is extracted from #1988 where first tests for uucore will be introduced
2021-04-05 16:16:00 +01:00
Sylvestre Ledru 2ef1b25d85 Create a new job to test make build 2021-04-02 23:30:24 +02:00
Sylvestre Ledru f431f58dd8
Bump min rustc to 1.40 (#1909) 2021-03-25 15:28:47 -07:00
Theophile Trunck 0ac5dbe44d Add CICD for busytest 2021-03-14 20:30:53 +01:00