Skip to content

Commit

Permalink
Add CI to generate .sqlx files
Browse files Browse the repository at this point in the history
  • Loading branch information
gferon committed Oct 29, 2024
1 parent c730030 commit c7dc705
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ jobs:
- name: Configure CI cache
uses: Swatinem/rust-cache@v2

- name: Prepare .sqlx files
working-directory: presage-store-sqlite
run: |
cargo install --locked sqlx-cli
cargo sqlx prepare --database-url sqlite:presage.sqlite
- name: Build
run: cargo build --all-targets

Expand Down
2 changes: 1 addition & 1 deletion presage-store-sqlite/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATABASE_URL="sqlite:presage.sqlite"
DATABASE_URL="sqlite:presage.sqlite"

0 comments on commit c7dc705

Please sign in to comment.