Cache sqlx-cli

This commit is contained in:
Diggory Blake 2021-03-30 00:10:08 +01:00
parent a98c95ef13
commit c767c1098d
2 changed files with 8 additions and 4 deletions

View file

@ -6,10 +6,6 @@ runs:
shell: bash shell: bash
run: echo "DATABASE_URL=postgres://postgres:password@localhost/sqlxmq" >> $GITHUB_ENV run: echo "DATABASE_URL=postgres://postgres:password@localhost/sqlxmq" >> $GITHUB_ENV
- name: Install sqlx-cli
shell: bash
run: cargo install sqlx-cli
- name: Start PostgreSQL on Ubuntu - name: Start PostgreSQL on Ubuntu
shell: bash shell: bash
run: | run: |

View file

@ -59,6 +59,10 @@ jobs:
profile: minimal profile: minimal
toolchain: stable toolchain: stable
override: true override: true
- uses: actions-rs/install@v0.1
with:
crate: sqlx-cli
use-tool-cache: true
- uses: ./.github/actions/postgres - uses: ./.github/actions/postgres
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
@ -74,6 +78,10 @@ jobs:
profile: minimal profile: minimal
toolchain: nightly toolchain: nightly
override: true override: true
- uses: actions-rs/install@v0.1
with:
crate: sqlx-cli
use-tool-cache: true
- uses: ./.github/actions/postgres - uses: ./.github/actions/postgres
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with: