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