0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-12 07:38:58 +02:00

Speed up typechecking CI (#15752)

By restoring the rust cache before installing the project.
This commit is contained in:
Erik Johnston 2023-06-09 15:00:30 +01:00 committed by GitHub
parent d84e66144d
commit 373c0c7ff7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -92,6 +92,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@1.58.1
- uses: Swatinem/rust-cache@v2
- name: Setup Poetry
uses: matrix-org/setup-python-poetry@v1
with:
@ -103,10 +107,6 @@ jobs:
# To make CI green, err towards caution and install the project.
install-project: "true"
- name: Install Rust
uses: dtolnay/rust-toolchain@1.58.1
- uses: Swatinem/rust-cache@v2
# Cribbed from
# https://github.com/AustinScola/mypy-cache-github-action/blob/85ea4f2972abed39b33bd02c36e341b28ca59213/src/restore.ts#L10-L17
- name: Restore/persist mypy's cache

1
changelog.d/15752.misc Normal file
View file

@ -0,0 +1 @@
Speed up typechecking CI.