Commit graph

39 commits

Author SHA1 Message Date
Jakub Beránek
13dca5e1ba
Update CI workflow to use rustc-josh-sync 2025-07-04 11:44:58 +02:00
Eric Huss
0aae3caf24 Update mdbook to 0.4.48
This updates to the latest version of mdbook which has had a variety
of fixes of new features since the last update.

Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0448
2025-04-28 11:41:17 -07:00
Tshepang Mbambo
1b5f2aa2a7 toolchain version does not need to be specified
- Rust backcompat removes the need to specify the version here
- Using these commands can result in a needless toolchain getting
  downloaded, like in the case where user only has Nightly installed
2025-04-19 13:34:13 +02:00
Jakub Beránek
88478aca86
Set linkcheck in ci.yml 2025-03-19 17:25:07 +08:00
Jakub Beránek
9423634997 Fix posting message to Zulip 2025-02-25 18:56:14 +01:00
Martin Liska
089af6704b Bump mdbook-linkcheck2 dependency version 2025-02-16 13:21:34 +01:00
Noah Lev
34db7baf88
Merge pull request #2246 from marxin/CI-more-ofter
Run CI multiple times a day
2025-02-15 17:06:46 -05:00
Martin Liska
fcfabc1076 Fix CI schedule 2025-02-15 23:03:42 +01:00
Martin Liska
6714f1d933 Start using latest release where -f checks all local links 2025-02-14 07:26:43 +01:00
Martin Liska
b4791992a3 Run CI multiple times a day 2025-02-12 07:46:09 +01:00
Jakub Beránek
3e5b413dc4 Make the rustc-pull workflow run less often 2025-02-03 23:41:48 +01:00
Jakub Beránek
97edb7a7c2 Checkout repository sources in rustc-pull CI action
This is needed for the `gh` command to work.
2025-02-01 15:50:00 +01:00
Jakub Beránek
179a2f8a53 Pass GITHUB_TOKEN to Zulip CI step 2025-01-31 17:01:38 +01:00
Jakub Beránek
40713cb451 Run rustc-pull CI every day, don't notify when there is nothing to update 2025-01-30 20:00:39 +01:00
Jakub Beránek
2412289fc9
Fix rustc-pull CI's bash commands 2025-01-27 23:34:43 +01:00
Martin Liska
1392e074b7 CI: use key-restore for cache GH action
It seems one can't overwrite a cache entry:
```
Failed to save: Unable to reserve cache with key linkcheck--0.8.1, another job may be creating this cache. More details: Cache already exists. Scope: refs/heads/master, Key: linkcheck--0.8.1, Version: 33f8fd511bed9c91c40778bc5c27cb58425caa894ab50f9c5705d83cb78660e0
Warning: Cache save failed.
```

A proper solution is to use `restore-keys`:
https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
2025-01-25 18:22:00 +01:00
Jakub Beránek
28b5e11e2a Send a message to Zulip when a sync finishes 2025-01-20 18:15:59 +01:00
许杰友 Jieyou Xu (Joe)
1327eeb5db
Merge pull request #2202 from Kobzol/pull-ci 2025-01-15 14:06:04 +08:00
Jakub Beránek
980412f029 Add CI workflow for performing rustc-pull 2025-01-11 17:50:07 +01:00
Noah Lev
b4297e729f ci: Remove incorrect use of continue-on-error
This will cause the CI build to be marked successful even if the build
failed. Instead, use `if: '!cancelled()'` to always save the cache
(except when the job is cancelled), even if the linkcheck failed.

See https://stackoverflow.com/a/58859404 for more.
2025-01-09 13:37:03 -08:00
Martin Liska
1ffe0eabf7 Update key 2025-01-08 17:07:08 +01:00
Martin Liska
9577119d19 Save linkcheck cache always 2025-01-08 17:05:11 +01:00
Noah Lev
cc9a6fa552 Opt into, rather than out of, linkcheck (#2180)
This makes it less of a hassle to render the book locally.
2024-12-30 17:22:22 +08:00
Martin Liška
e19542f0a9 Start using mdbook-linkcheck2 (#2103) 2024-12-28 15:00:32 -08:00
Nilstrieb
3da49452e0 Delete length check (#1952)
It's super annoying to be forced to use this bad convention, and
apparently everyone agrees. The only reason no improvements have been
done is because those were blocked on writing a better checker.

I strongly believe that no checker is better than a bad checker, so
let's just delete it in the meantime. I kindly asked anyone who sees
this to complain about overly long sentences in review in the future, I
think we can make this turn out fine.
2024-03-30 17:46:30 +01:00
Yuki Okushi
e5b0c818bc Upgrade actions to use Node.js v20 (#1863) 2024-01-28 19:45:18 -03:00
jyn
8c838fb2fb Various improvements to check_line_lengths.sh (#1667) 2023-04-09 12:08:46 +09:00
Noah Lev
0d8389c31e Bump dependencies to fix CI (#1610) 2023-02-18 09:37:19 +09:00
Yuki Okushi
9d0cb48524 Use ephemeral PAT for linkcheck
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-01-28 20:39:19 +02:00
Yuki Okushi
f9875c29a9 chore: Update actions/github-script to v6
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-12-08 18:59:18 -08:00
Yuki Okushi
57f762226e Update mdbook and its extensions versions
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-09-22 10:48:08 +02:00
Yuki Okushi
88b498aa33 Remove unmaintained action
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-09-22 10:48:08 +02:00
Yuki Okushi
39d2be681e Update some actions versions
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-09-22 10:48:08 +02:00
Niko Matsakis
d1501b5cf1 add mdbook-mermaid 2022-07-17 23:34:12 +02:00
Noah Lev
ff167cfd3b Ensure date-check cron job is using latest stable Rust
This should prevent future failures like this one [1].

[1]: https://github.com/rust-lang/rustc-dev-guide/runs/4067460927?check_suite_focus=true
2021-11-04 09:33:03 -07:00
Tshepang Lekhonkhobe
5d77984e03 update mdbook version to latest
v0.4.7 didn't have the feature to allow this

See https://github.com/rust-lang/rustc-dev-guide/pull/1180#issuecomment-899128718
2021-08-15 20:47:42 -05:00
Yuki Okushi
cadc25ff9b Trigger GHA only on the original repo 2021-04-27 13:15:39 -04:00
Yuki Okushi
e33049fc64 Switch from Travis to GHA (#1073) 2021-03-10 11:51:56 -05:00
Camelid
bc320e7800 Implement date-checker
This tool looks for HTML comments like `<!-- date: 2021-01 -->` in each
Markdown source file and compiles a list of dates that are older than
six months. It then opens an issue with that list, with checkboxes for
each file and date. Note that it will only open an issue if there was at
least one date older than six months; it does nothing if the list is
empty.

This tool is automatically run monthly in a GitHub Actions workflow.
I have tested the tool on a private repo and confirmed that it works.
2021-02-03 19:29:07 -05:00