mirror of
https://github.com/actix/examples
synced 2025-04-22 08:34:52 +02:00
ci: install libpq-dev
This commit is contained in:
parent
dbea1221d8
commit
8681b2a156
7
.github/workflows/ci-nightly.yml
vendored
7
.github/workflows/ci-nightly.yml
vendored
@ -21,6 +21,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: ${{ matrix.version }}
|
toolchain: ${{ matrix.version }}
|
||||||
|
|
||||||
|
- name: Install system packages
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install sqlite3
|
||||||
|
sudo apt-get -y install libpq-dev
|
||||||
|
|
||||||
- name: Install DB CLI tools
|
- name: Install DB CLI tools
|
||||||
run: |
|
run: |
|
||||||
cargo install --force sqlx-cli --no-default-features --features=sqlite,rustls
|
cargo install --force sqlx-cli --no-default-features --features=sqlite,rustls
|
||||||
@ -30,7 +36,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DATABASE_URL: sqlite://./todo.db
|
DATABASE_URL: sqlite://./todo.db
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install sqlite3
|
|
||||||
sqlx database create
|
sqlx database create
|
||||||
chmod a+rwx ./todo.db
|
chmod a+rwx ./todo.db
|
||||||
sqlx migrate run --source=./basics/todo/migrations
|
sqlx migrate run --source=./basics/todo/migrations
|
||||||
|
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -26,6 +26,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: ${{ matrix.version }}
|
toolchain: ${{ matrix.version }}
|
||||||
|
|
||||||
|
- name: Install system packages
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install sqlite3
|
||||||
|
sudo apt-get -y install libpq-dev
|
||||||
|
|
||||||
- name: Install DB CLI tools
|
- name: Install DB CLI tools
|
||||||
run: |
|
run: |
|
||||||
cargo install --force sqlx-cli --no-default-features --features=sqlite,rustls
|
cargo install --force sqlx-cli --no-default-features --features=sqlite,rustls
|
||||||
@ -35,7 +41,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DATABASE_URL: sqlite://./todo.db
|
DATABASE_URL: sqlite://./todo.db
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install sqlite3
|
|
||||||
sqlx database create
|
sqlx database create
|
||||||
chmod a+rwx ./todo.db
|
chmod a+rwx ./todo.db
|
||||||
sqlx migrate run --source=./basics/todo/migrations
|
sqlx migrate run --source=./basics/todo/migrations
|
||||||
|
Loading…
x
Reference in New Issue
Block a user