Skip to content

Commit 3b2121f

Browse files
committed
ci: use slqx cache instead of creating empty database
1 parent 191664f commit 3b2121f

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/rust.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,18 @@ jobs:
1414
name: Rust Build
1515
runs-on: ubuntu-latest
1616

17+
env:
18+
RUSTFLAGS: '-D warnings'
19+
SQLX_OFFLINE: true
20+
1721
steps:
1822
- uses: actions/checkout@v4
1923

20-
- name: Install dependencies
21-
run: sudo apt-get install -y sqlite3
22-
23-
- name: Setup development database
24-
run: sqlite3 apt-cacher-rs.db < db.sqlite
25-
2624
- name: Build (default features)
2725
run: cargo build --verbose
28-
env:
29-
RUSTFLAGS: '-D warnings'
3026

3127
- name: Build (tls_rustls feature)
3228
run: cargo build --verbose --features tls_rustls
33-
env:
34-
RUSTFLAGS: '-D warnings'
3529

3630
- name: Format
3731
run: cargo fmt --all --check

0 commit comments

Comments
 (0)