mirror of
https://github.com/Diggsey/sqlxmq.git
synced 2024-11-25 09:41:01 +00:00
Cache sqlx-cli
This commit is contained in:
parent
a98c95ef13
commit
c767c1098d
2 changed files with 8 additions and 4 deletions
4
.github/actions/postgres/action.yml
vendored
4
.github/actions/postgres/action.yml
vendored
|
@ -6,10 +6,6 @@ runs:
|
|||
shell: bash
|
||||
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
|
||||
shell: bash
|
||||
run: |
|
||||
|
|
8
.github/workflows/toolchain.yml
vendored
8
.github/workflows/toolchain.yml
vendored
|
@ -59,6 +59,10 @@ jobs:
|
|||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
- uses: actions-rs/install@v0.1
|
||||
with:
|
||||
crate: sqlx-cli
|
||||
use-tool-cache: true
|
||||
- uses: ./.github/actions/postgres
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
@ -74,6 +78,10 @@ jobs:
|
|||
profile: minimal
|
||||
toolchain: nightly
|
||||
override: true
|
||||
- uses: actions-rs/install@v0.1
|
||||
with:
|
||||
crate: sqlx-cli
|
||||
use-tool-cache: true
|
||||
- uses: ./.github/actions/postgres
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue