bevy/.github
François d3ae816e3e Ci stability and speed improvements (#2551)
# Objective

- There are a few random failures in CI, mostly due to contacting crates.io or checking for deadlinks
- CI can take some time, more than 20 minutes for a full status
- A clippy/format issue stops running tests on other platforms


## Solution

- Use GitHub cache for cargo artefacts
  - This speeds up builds and reduce dependencies on outside world
- Reorder and add dependencies between short jobs. They are still setup to run even if one of the dependency failed
  - This reduce the number of parallel jobs that are running for one PR. On GitHub free tier, we're limited to 20.
- Split CI checks (format & clippy) in its own job
  - This speeds up test jobs, and allow us to not kill all platform tests for a format issue
- Retry in case of dead links check failure
  - Internet is just that kind of place where things may seem dead at some point but back alive 5 seconds later

## Before

<img width="1062" alt="Screenshot 2021-07-27 at 01 18 52" src="https://user-images.githubusercontent.com/8672791/127071973-9a2c5ce8-c871-4f8d-9b17-08871824b6c4.png">

## After (with all cache live)

<img width="1063" alt="Screenshot 2021-07-27 at 01 18 28" src="https://user-images.githubusercontent.com/8672791/127071986-767a7e65-53ed-45fd-8d75-51a571f0b851.png">
2021-07-27 02:01:11 +00:00
..
example-run run some examples on CI using swiftshader (#1826) 2021-04-14 21:40:36 +00:00
ISSUE_TEMPLATE new labels: feature request 2021-07-13 13:29:05 -07:00
linters GitHub Action: Check local Markdown links on push (#2067) 2021-05-02 20:22:32 +00:00
workflows Ci stability and speed improvements (#2551) 2021-07-27 02:01:11 +00:00
bors.toml Android uninstall 31 (#2533) 2021-07-26 00:22:42 +00:00
CONTRIBUTING.md Cleanup of Markdown Files and add CI Checking (#1463) 2021-02-22 04:50:05 +00:00
dependabot.yml dependabot: use new C-Dependencies label 2021-07-13 12:51:48 -07:00
FUNDING.yml Create FUNDING.yml 2020-08-18 10:59:30 -07:00
label-config.yml Relicense Bevy under the dual MIT or Apache-2.0 license (#2509) 2021-07-23 21:11:51 +00:00
pull_request_template.md Add PR Template (#2272) 2021-06-02 21:07:56 +00:00