@@ -29,7 +29,6 @@ permissions:
2929 contents : write
3030
3131jobs :
32- # Check code formatting
3332 format :
3433 name : Check formatting
3534 runs-on : ubuntu-latest
6867 echo "❌ Formatting issues found. Run 'cargo fmt --all' locally."
6968 exit 1
7069
71- # Run clippy linter
7270 clippy :
7371 name : Clippy lints
7472 runs-on : ubuntu-latest
8785 sudo apt-get install -y \
8886 pkg-config \
8987 libssl-dev \
88+ libdbus-1-dev \
9089 dmidecode \
9190 libgtk-4-dev \
9291 libappindicator3-dev \
@@ -110,7 +109,6 @@ jobs:
110109 - name : Run clippy
111110 run : cargo clippy --all-targets --all-features -- -D warnings
112111
113- # Build without GUI
114112 build_cli :
115113 name : Build CLI (no GUI)
116114 runs-on : ubuntu-latest
@@ -128,6 +126,7 @@ jobs:
128126 sudo apt-get install -y \
129127 pkg-config \
130128 libssl-dev \
129+ libdbus-1-dev \
131130 dmidecode
132131
133132 - name : Cache cargo
@@ -159,7 +158,6 @@ jobs:
159158 path : auto-cpufreq/target/release/auto-cpufreq
160159 retention-days : 30
161160
162- # Build with GUI
163161 build_gui :
164162 name : Build with GUI (GTK4)
165163 runs-on : ubuntu-latest
@@ -177,6 +175,7 @@ jobs:
177175 sudo apt-get install -y \
178176 pkg-config \
179177 libssl-dev \
178+ libdbus-1-dev \
180179 dmidecode \
181180 libgtk-4-dev \
182181 libappindicator3-dev \
@@ -217,7 +216,6 @@ jobs:
217216 auto-cpufreq/target/release/auto-cpufreq-tray
218217 retention-days : 30
219218
220- # Test installation
221219 test_install :
222220 name : Test installation script
223221 runs-on : ubuntu-latest
@@ -232,6 +230,7 @@ jobs:
232230 sudo apt-get install -y \
233231 pkg-config \
234232 libssl-dev \
233+ libdbus-1-dev \
235234 dmidecode
236235
237236 - name : Download CLI artifact
@@ -259,7 +258,6 @@ jobs:
259258 auto-cpufreq --version || echo "Version check failed"
260259 auto-cpufreq --help
261260
262- # Multi-distro test
263261 test_distros :
264262 name : Test on ${{ matrix.distro }}
265263 runs-on : ubuntu-latest
@@ -282,17 +280,17 @@ jobs:
282280 - name : Install dependencies (Debian/Ubuntu)
283281 if : startsWith(matrix.distro, 'ubuntu') || startsWith(matrix.distro, 'debian')
284282 working-directory : .
285- run : apt-get update && apt-get install -y curl gcc pkg-config libssl-dev dmidecode
283+ run : apt-get update && apt-get install -y curl gcc pkg-config libssl-dev libdbus-1-dev dmidecode
286284
287285 - name : Install dependencies (Fedora)
288286 if : startsWith(matrix.distro, 'fedora')
289287 working-directory : .
290- run : dnf install -y curl gcc openssl-devel dmidecode pkgconfig
288+ run : dnf install -y curl gcc openssl-devel dbus-devel dmidecode pkgconfig
291289
292290 - name : Install dependencies (Arch)
293291 if : startsWith(matrix.distro, 'archlinux')
294292 working-directory : .
295- run : pacman -Sy --noconfirm curl gcc openssl dmidecode pkg-config
293+ run : pacman -Sy --noconfirm curl gcc openssl dbus dmidecode pkg-config
296294
297295 - name : Install Rust
298296 working-directory : .
@@ -311,7 +309,6 @@ jobs:
311309 ./target/release/auto-cpufreq --version || true
312310 ./target/release/auto-cpufreq --help || true
313311
314- # Security audit
315312 security_audit :
316313 name : Security audit
317314 runs-on : ubuntu-latest
@@ -329,7 +326,6 @@ jobs:
329326 run : cargo audit
330327 continue-on-error : true
331328
332- # Code coverage
333329 coverage :
334330 name : Code coverage
335331 runs-on : ubuntu-latest
@@ -349,6 +345,7 @@ jobs:
349345 sudo apt-get install -y \
350346 pkg-config \
351347 libssl-dev \
348+ libdbus-1-dev \
352349 dmidecode \
353350 libgtk-4-dev \
354351 libappindicator3-dev \
@@ -375,7 +372,6 @@ jobs:
375372 fail_ci_if_error : false
376373 continue-on-error : true
377374
378- # Create release artifacts
379375 create_artifacts :
380376 name : Create release artifacts
381377 runs-on : ubuntu-latest
@@ -394,6 +390,7 @@ jobs:
394390 sudo apt-get install -y \
395391 pkg-config \
396392 libssl-dev \
393+ libdbus-1-dev \
397394 dmidecode \
398395 libgtk-4-dev \
399396 libappindicator3-dev \
0 commit comments