mirror of
https://github.com/Diggsey/sqlxmq.git
synced 2024-11-22 08:11:00 +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
|
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: |
|
||||||
|
|
8
.github/workflows/toolchain.yml
vendored
8
.github/workflows/toolchain.yml
vendored
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue