Skip to content

Commit

Permalink
ci: fix tool installs
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Dec 28, 2024
1 parent 0633fd4 commit eca28f3
Show file tree
Hide file tree
Showing 4 changed files with 577 additions and 531 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ jobs:
with:
toolchain: ${{ matrix.version }}

- name: Install cargo-binstall,cargo-ci-cache-clean
uses: taiki-e/install-action@v2.46.20
with:
tool: cargo-binstall,cargo-ci-cache-clean

- name: Install DB CLI tools
run: |
cargo install sqlx-cli --no-default-features --features=rustls,sqlite
cargo install diesel_cli --no-default-features --features sqlite
cargo binstall sqlx-cli --no-default-features --features=rustls,sqlite
cargo binstall diesel_cli --no-default-features --features sqlite
- name: Create Test DBs
env:
Expand Down Expand Up @@ -58,10 +63,5 @@ jobs:
cargo test -p=db-diesel --no-fail-fast -- --nocapture
timeout-minutes: 10

- name: Install cargo-ci-cache-clean
uses: taiki-e/install-action@v2.46.20
with:
tool: cargo-ci-cache-clean

- name: CI cache clean
run: cargo-ci-cache-clean
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@ jobs:
with:
toolchain: ${{ matrix.version }}

- name: Install cargo-binstall,cargo-ci-cache-clean
uses: taiki-e/install-action@v2.46.20
with:
tool: cargo-binstall,cargo-ci-cache-clean

- name: Install DB CLI tools
run: |
cargo install sqlx-cli --no-default-features --features=rustls,sqlite
cargo install diesel_cli --no-default-features --features sqlite
cargo binstall sqlx-cli --no-default-features --features=rustls,sqlite
cargo binstall diesel_cli --no-default-features --features sqlite
- name: Create Test DBs
env:
Expand Down Expand Up @@ -63,10 +68,5 @@ jobs:
cargo test -p=db-diesel --no-fail-fast -- --nocapture
timeout-minutes: 10

- name: Install cargo-ci-cache-clean
uses: taiki-e/install-action@v2.46.20
with:
tool: cargo-ci-cache-clean

- name: CI cache clean
run: cargo-ci-cache-clean
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"askama",
"autoclean",
"autoreload",
"binstall",
"chrono",
"deadpool",
"dotenv",
Expand Down
Loading

0 comments on commit eca28f3

Please sign in to comment.