This commit is contained in:
parent
cf43f4a70b
commit
fafb8ff58b
1 changed files with 13 additions and 2 deletions
15
.github/workflows/rust.yml
vendored
15
.github/workflows/rust.yml
vendored
|
|
@ -13,11 +13,22 @@ jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: rust:latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install cargo
|
- name: Cache Cargo
|
||||||
run: curl https://sh.rustup.rs -sSf | yes | sh
|
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
|
- name: Install sqlx-cli
|
||||||
run: cargo install sqlx-cli --no-default-features --features postgres
|
run: cargo install sqlx-cli --no-default-features --features postgres
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue