Skip to content

Commit 6b00be7

Browse files
author
vsilent
committed
sqlx-date.json check
1 parent 7c57cd7 commit 6b00be7

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎.github/workflows/rust.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,26 @@ jobs:
5151
run: sqlx database create || true
5252
- name: Run migrations
5353
run: sqlx migrate run
54+
- name: Check project compiles first
55+
run: cargo check --all-targets
5456
- name: Generate sqlx offline cache (sqlx 0.6)
5557
run: cargo sqlx prepare
5658
- name: Verify .sqlx/ cache was generated
5759
run: |
58-
ls -lh .sqlx/ || echo "No .sqlx directory found"
60+
if [ ! -d ".sqlx" ]; then
61+
echo "ERROR: .sqlx directory was not created"
62+
exit 1
63+
fi
64+
echo ".sqlx directory contents:"
65+
ls -lh .sqlx/ || echo "Directory empty or inaccessible"
66+
echo "Query cache files:"
5967
find .sqlx -type f | head -20
6068
- name: Upload .sqlx cache
6169
uses: actions/upload-artifact@v4
6270
with:
6371
name: sqlx-cache
6472
path: .sqlx
73+
if-no-files-found: error
6574

6675
build:
6776
name: Build binaries (Linux/macOS)

0 commit comments

Comments
 (0)