Skip to content

Commit 2fa9377

Browse files
committed
Enhance CI workflow and optimize release profile settings
1 parent badaa84 commit 2fa9377

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/extended.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,17 @@ jobs:
167167
uses: ./.github/actions/setup-builder
168168
with:
169169
rust-version: stable
170+
- name: Build sqllogictest binary
171+
run: |
172+
TEST_BIN=$(cargo test --features backtrace,parquet_encryption --profile release-nonlto --test sqllogictests --no-run --message-format=json | sed -n 's/.*"executable":"\([^"]*\)".*/\1/p' | head -n 1)
173+
if [ -z "$TEST_BIN" ]; then
174+
echo "Could not find sqllogictests test binary"
175+
exit 1
176+
fi
177+
echo "TEST_BIN=$TEST_BIN" >> "$GITHUB_ENV"
170178
- name: Run sqllogictest
171179
run: |
172-
cargo test --features backtrace,parquet_encryption --profile release-nonlto --test sqllogictests -- --include-sqlite
180+
"$TEST_BIN" --include-sqlite
173181
cargo clean
174182
175183
176-
177-

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,13 @@ strip = true # Eliminate debug information to minimize binary size
249249
[profile.release-nonlto]
250250
codegen-units = 16
251251
debug-assertions = false
252-
incremental = false
252+
debug = false
253+
incremental = true
253254
inherits = "release"
254255
lto = false
255-
opt-level = 3
256+
opt-level = 2
256257
overflow-checks = false
257258
rpath = false
258-
strip = false # Retain debug info for flamegraphs
259259

260260
[profile.ci]
261261
debug = false

0 commit comments

Comments
 (0)