From de9cfd19978ca8748409e17f359e9c3d1ac65f0c Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 28 Nov 2025 10:08:20 +0100 Subject: [PATCH] ci: Use `Cargo`'s `dev` profile Using the `dev` profile means faster builds and more checks. Signed-off-by: Remi Gacogne --- .github/workflows/build-and-test-all.yml | 2 ++ .github/workflows/codeql-analysis.yml | 1 + .github/workflows/coverity.yml | 2 ++ 3 files changed, 5 insertions(+) diff --git a/.github/workflows/build-and-test-all.yml b/.github/workflows/build-and-test-all.yml index ba3d4a81a5..453e6a2ca4 100644 --- a/.github/workflows/build-and-test-all.yml +++ b/.github/workflows/build-and-test-all.yml @@ -159,6 +159,7 @@ jobs: SANITIZERS: ${{ matrix.sanitizers }} UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1:suppressions=${{ env.REPO_HOME }}/build-scripts/UBSan.supp" UNIT_TESTS: yes + CARGO_USE_DEV: 1 options: --sysctl net.ipv6.conf.all.disable_ipv6=0 defaults: run: @@ -248,6 +249,7 @@ jobs: UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1:suppressions=${{ env.REPO_HOME }}/build-scripts/UBSan.supp" UNIT_TESTS: yes FUZZING_TARGETS: yes + CARGO_USE_DEV: 1 options: --sysctl net.ipv6.conf.all.disable_ipv6=0 defaults: run: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 75820cb6b5..a82795b648 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -52,6 +52,7 @@ jobs: # for clang-tidy only, not compilation CLANG_VERSION: '14' REPO_HOME: ${{ github.workspace }} + CARGO_USE_DEV: 1 outputs: clang-tidy-annotations-auth: ${{ steps.clang-tidy-annotations-auth.outputs.failed }} diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index e50d689460..e25e49b1d3 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -59,6 +59,7 @@ jobs: COVERITY_TOKEN: ${{ secrets.COVERITY_TOKEN }} SANITIZERS: UNIT_TESTS: no + CARGO_USE_DEV: 1 REPO_HOME: ${{ github.workspace }} steps: - uses: PowerDNS/pdns/set-ubuntu-mirror@meta @@ -103,6 +104,7 @@ jobs: COVERITY_TOKEN: ${{ secrets.COVERITY_TOKEN }} SANITIZERS: UNIT_TESTS: no + CARGO_USE_DEV: 1 steps: - uses: PowerDNS/pdns/set-ubuntu-mirror@meta - uses: actions/checkout@v5 -- 2.47.3