Commit Graph

40 Commits

Author SHA1 Message Date
David Tolnay 635e4ff7a1
Test docs.rs documentation build in CI 2023-09-24 10:53:43 -07:00
David Tolnay bb7e683593
Update actions/checkout@v3 -> v4 2023-09-04 22:35:01 -07:00
David Tolnay 8facc53cd6
Revert "Temporarily disable -Zrandomize-layout due to rustc ICE"
Fixed in nightly-2023-07-23.

This reverts commit 6875bc7c7d.
2023-07-22 18:41:37 -07:00
David Tolnay 6875bc7c7d
Temporarily disable -Zrandomize-layout due to rustc ICE
https://github.com/rust-lang/rust/issues/113941
2023-07-21 20:22:42 -07:00
David Tolnay 954e38428c
Make minimal-versions job consistent with other repos 2023-07-04 10:09:02 -07:00
David Tolnay c418ad56c3
Update indexmap dependency to version 2 2023-06-23 20:22:02 -07:00
David Tolnay 147103c4f4
Show error details during miri setup in CI
Without this, if it fails, the only information printed is useless:

    Preparing a sysroot for Miri (target: x86_64-unknown-linux-gnu)...
    fatal error: failed to build sysroot; run `cargo miri setup` to see the error details
2023-05-23 08:29:46 -07:00
David Tolnay 68a9e95c9f
Enable type layout randomization in CI on nightly 2023-02-19 09:21:59 -08:00
David Tolnay bd3ebb1bc9
Support a manual trigger on CI workflow 2023-02-18 17:23:56 -08:00
David Tolnay 3ff550655d
Speed up cargo fuzz CI job
https://github.com/rust-fuzz/cargo-fuzz/pull/317
2023-01-19 17:28:31 -08:00
David Tolnay ecdb5bf2ec
Prevent actions duplication on noop merge commits 2022-12-31 12:45:33 -08:00
David Tolnay 490b0c3134
Time out workflows after 45 minutes
GitHub's default timeout is 6 hours. Recently some of my GitHub Actions
jobs have started randomly stalling for that long, which is inconvenient
because it ties up a chunk of my runner quota. It apepars to be very
rare for a job to recover after stalling. It's better to time out
quicker and retry on a different runner.
2022-11-25 18:56:18 -08:00
David Tolnay 161f60c18c
Add a sponsors link 2022-09-14 12:40:31 -07:00
David Tolnay f08c55e468
GitHub Workflows security hardening 2022-09-02 15:09:31 -07:00
David Tolnay 26af5fcd12
Raise required toolchain to rust 1.58
error[E0277]: expected a `FnMut<(char,)>` closure, found `[char; 2]`
       --> src/de.rs:890:38
        |
    890 |     let scalar = scalar.strip_prefix(['-', '+']).unwrap_or(scalar);
        |                         ------------ ^^^^^^^^^^ expected an `FnMut<(char,)>` closure, found `[char; 2]`
        |                         |
        |                         required by a bound introduced by this call
        |
        = help: the trait `FnMut<(char,)>` is not implemented for `[char; 2]`
        = note: required because of the requirements on the impl of `Pattern<'_>` for `[char; 2]`
2022-07-20 15:43:04 -07:00
David Tolnay f41880c1c4
Bump min CI down to 1.56.0
The indexmap and hashbrown crates which we depend on have both released
versions that are compatible with 1.56.0 again, as opposed to 1.56.1.
2022-07-09 16:26:40 -07:00
David Tolnay 7fcb809449
Bump oldest rustc tested to 1.56.1
Required by 2021 edition in hashbrown.

    error: failed to download `hashbrown v0.12.1`

    Caused by:
      unable to get packages from source

    Caused by:
      failed to parse manifest at github.com-1ecc6299db9ec823/hashbrown-0.12.1/Cargo.toml

    Caused by:
      failed to parse the `edition` key

    Caused by:
      this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.
2022-06-16 20:53:39 -07:00
David Tolnay 1f278b54ab
Check for outdated deps in fuzz target 2022-06-06 17:02:42 -07:00
David Tolnay 48c41243ab
Check all crates in workspace for outdated deps 2022-06-06 14:39:25 -07:00
David Tolnay 970759cc5d
Run miri in stricter miri-strict-provenance mode 2022-05-06 04:01:35 -07:00
David Tolnay 85baedfebb
Add a miri test job in CI 2022-04-28 20:37:52 -07:00
David Tolnay 8040788ac1
Drop unneeded quoting from env variable in workflows yaml 2022-04-28 19:29:12 -07:00
David Tolnay 13306e044d
Update workflows to actions/checkout@v3 2022-04-25 01:45:27 -07:00
David Tolnay 6acb03a93b
Raise minimum tested toolchain to rust 1.46
Our indexmap dependency needs at least this version.

    error[E0658]: use of unstable library feature 'vec_drain_as_slice': recently added
        --> github.com-1ecc6299db9ec823/indexmap-1.8.0/src/map.rs:1182:30
         |
    1182 |         let iter = self.iter.as_slice().iter().map(Bucket::refs);
         |                              ^^^^^^^^

    error[E0658]: use of unstable library feature 'vec_drain_as_slice': recently added
       --> github.com-1ecc6299db9ec823/indexmap-1.8.0/src/set.rs:842:30
        |
    842 |         let iter = self.iter.as_slice().iter().map(Bucket::key_ref);
        |                              ^^^^^^^^
2022-01-07 18:31:01 -08:00
David Tolnay c33a7d6e63
Detect warnings in CI 2021-12-31 22:23:27 -08:00
David Tolnay 8c3ec785cb
Install newest build of cargo-outdated
The old version available by default in the GitHub Actions image fails
with:

    thread 'main' panicked at 'package cache lock is not currently held, Cargo forgot to call `acquire_package_cache_lock` before we got to this stack frame', /usr/share/rust/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.57.0/src/cargo/util/config/mod.rs:1542:9
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2021-11-17 13:33:05 -08:00
David Tolnay 87f8ffb6f6
Revert "Disable broken fuzz build in CI"
This reverts commit 13f2054b89.
2021-10-22 19:16:58 -07:00
David Tolnay c572ebae19
Speed up cargo-fuzz install 2021-10-09 01:58:39 +01:00
David Tolnay 55e8e9de3c
Add actions job to notice outdated dependencies 2021-10-08 02:03:47 -04:00
David Tolnay 13f2054b89
Disable broken fuzz build in CI
https://github.com/rust-fuzz/cargo-fuzz/issues/276
2021-09-25 21:18:47 -07:00
David Tolnay 178b9f8d92
Skip clippy job on pull requests 2021-09-18 16:48:02 -07:00
David Tolnay 6edeb29eba
Raise minimum compiler to 1.38
Required by indexmap's dependency on hashbrown:

    error[E0658]: use of unstable library feature 'ptr_cast'
       --> hashbrown-0.11.2/src/raw/mod.rs:504:57
        |
    504 |         NonNull::new_unchecked(self.table.ctrl.as_ptr().cast())
        |                                                         ^^^^
2021-08-21 21:28:52 -07:00
David Tolnay e656edc0b7
Test minimal-versions in CI 2021-01-04 23:53:57 -08:00
David Tolnay f6aa31d1f7
Fix catching clippy warnings as CI failures 2021-01-04 23:53:37 -08:00
David Tolnay c82a38dc7f
Apply clippy to test suite 2020-12-29 17:03:12 -08:00
David Tolnay 7a04d41d24
Extract clippy lint level to CI job 2020-12-29 17:01:31 -08:00
David Tolnay d24b92445e
Raise minimum tested version to rustc 1.45 2020-10-11 12:10:35 -07:00
David Tolnay c3f3797980
Add CI build to cover fuzz target 2020-05-13 13:54:14 -07:00
David Tolnay 1376562d87
Remove Travis configuration 2020-05-05 11:33:38 -07:00
David Tolnay f01171eaee
Enable GitHub Actions 2020-05-03 01:11:24 -07:00