summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2023-06-09 15:00:30 +0100
committerGitHub <noreply@github.com>2023-06-09 15:00:30 +0100
commit373c0c7ff7cf55b5f46aba43f4c4f9bba5c79c0e (patch)
tree9cd2d54dec847477a8c86dd5e3f49eeb1e290188 /.github
parentAllow for the configuration of max request retries and min/max retry delays i... (diff)
downloadsynapse-373c0c7ff7cf55b5f46aba43f4c4f9bba5c79c0e.tar.xz
Speed up typechecking CI (#15752)
By restoring the rust cache before installing the project.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/tests.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index cf1899b580..02a4be3a24 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -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