From: Remi Gacogne Date: Fri, 28 Nov 2025 09:08:20 +0000 (+0100) Subject: ci: Use `Cargo`'s `dev` profile X-Git-Tag: rec-5.4.0-alpha1~35^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16572%2Fhead;p=thirdparty%2Fpdns.git ci: Use `Cargo`'s `dev` profile Using the `dev` profile means faster builds and more checks. Signed-off-by: Remi Gacogne --- 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