CI: Don't do release target build, create "small" profile
What changed, and why it matters
This commit changes the project's automated build settings to use a new 'small' Rust compilation profile instead of the 'release' profile. The goal is to make CI builds faster and produce smaller artifacts for testing, with no intended functional change to the software itself.
No security action required. This is a CI/build optimization change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch adds a new Cargo profile named ‘small’ that inherits from the ‘dev’ profile with opt-level=0, debug=0, and codegen-units=32. It then updates GitHub Actions CI workflows to use RUST_PROFILE=small instead of RUST_PROFILE=release. The commit message explains this trades off optimization for faster builds and smaller testpack artifacts compared to debug builds.
Changed components
.github/workflows/ci.yamlCargo.tomlInspect captured patch +12 / −7
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index a6e51264..924a3e14 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -11,9 +11,8 @@ concurrency:
cancel-in-progress: true
env:
- # Makes the upload-artifact work more reliably at the cost
- # of a bit of compile time.
- RUST_PROFILE: release
+ # Reduce size, helps upload-artifact work more reliably
+ RUST_PROFILE: small
SLOW_MACHINE: 1
CI_SERVER_URL: "http://35.239.136.52:3170"
PYTEST_OPTS_BASE: "-vvv --junit-xml=report.xml --timeout=1800 --durations=10"
@@ -373,7 +372,7 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 120
env:
- RUST_PROFILE: release # Has to match the one in the compile step
+ RUST_PROFILE: small # Has to match the one in the compile step
PYTEST_OPTS: -vvv --junit-xml=report.xml --timeout=1800 --durations=10
needs:
- compile
@@ -484,7 +483,7 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 120
env:
- RUST_PROFILE: release # Has to match the one in the compile step
+ RUST_PROFILE: small # Has to match the one in the compile step
CFG: compile-gcc
PYTEST_OPTS: -vvv --junit-xml=report.xml --timeout=1800 --durations=10 --test-group-random-seed=42
needs:
@@ -569,7 +568,7 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 120
env:
- RUST_PROFILE: release
+ RUST_PROFILE: small
SLOW_MACHINE: 1
TEST_DEBUG: 1
PYTEST_OPTS: -vvv --junit-xml=report.xml --timeout=1800 --durations=10 --test-group-random-seed=42
@@ -707,7 +706,7 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 120
env:
- RUST_PROFILE: release # Has to match the one in the compile step
+ RUST_PROFILE: small # Has to match the one in the compile step
PYTEST_OPTS: -vvv --junit-xml=report.xml --timeout=1800 --durations=10
needs:
- compile
diff --git a/Cargo.toml b/Cargo.toml
index a3b8e55d..ef9ca9e8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,12 @@
[profile.release]
strip = "debuginfo"
+[profile.small]
+inherits = "dev"
+opt-level = 0
+debug = 0
+codegen-units = 32
+
[workspace]
resolver = "2"
members = [
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.