Skip to content

Commit 4fb5313

Browse files
committed
ci: 移除CI配置中的offline特性
在CI配置中移除了`cargo test`和`cargo build`命令中的`--features offline`参数,以简化构建和测试流程,避免不必要的复杂性。
1 parent f893e03 commit 4fb5313

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/backend.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
DATABASE_URL: ${{ secrets.DATABASE_URL }}
4545
SQLX_OFFLINE: true
4646
- name: Run tests
47-
run: cd backend && cargo test --verbose --features offline
47+
run: cd backend && cargo test --verbose
4848

4949
build:
5050
name: Build ${{ matrix.target.name }}
@@ -98,7 +98,7 @@ jobs:
9898
- name: Build release binary
9999
run: |
100100
cd backend
101-
cargo build --release --target ${{ matrix.target.target }} --features offline
101+
cargo build --release --target ${{ matrix.target.target }}
102102
103103
- name: Prepare binary
104104
shell: bash

0 commit comments

Comments
 (0)