ci: Check formatting

Also moves rustup installation to a seperate workflow and
enables caching.
The sccache action required a github.com api token, so we set
all that up too.
This commit is contained in:
Jade Ellis 2025-05-11 17:42:57 +01:00
parent d03325c65a
commit f14725a51b
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
4 changed files with 120 additions and 5 deletions

View file

@ -79,16 +79,13 @@ jobs:
run: echo '${{ toJSON(fromJSON(needs.define-variables.outputs.build_matrix)) }}'
- name: Echo matrix
run: echo '${{ toJSON(matrix) }}'
- run: |
if ! command -v rustup &> /dev/null ; then
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
fi
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install rust
uses: ./.forgejo/actions/rust-toolchain
- name: Cache timelord-cli installation
id: cache-timelord-bin