From fafb8ff58b3d752643fea6674208a09acc8268b4 Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 15 Mar 2026 12:52:11 +0100 Subject: [PATCH] ci(rust): adding the container rust --- .github/workflows/rust.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 34ce649..be9ebd4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,11 +13,22 @@ jobs: build: runs-on: ubuntu-latest + container: rust:latest steps: - uses: actions/checkout@v4 - - name: Install cargo - run: curl https://sh.rustup.rs -sSf | yes | sh + - name: Cache Cargo + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- - name: Install sqlx-cli run: cargo install sqlx-cli --no-default-features --features postgres - name: Prepare