From 6c15803dd65515ba9b2325d1a043d3cacfbbc14e Mon Sep 17 00:00:00 2001 From: Samyar Sadat Akhavi Date: Sat, 27 Jul 2024 16:17:01 +0300 Subject: [PATCH] Specify workflow CMake build type as "Release". --- .github/workflows/codeql-pico-scripts/pico-build.sh | 2 +- .github/workflows/pico-build.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql-pico-scripts/pico-build.sh b/.github/workflows/codeql-pico-scripts/pico-build.sh index 7f6aba5..66a19f9 100644 --- a/.github/workflows/codeql-pico-scripts/pico-build.sh +++ b/.github/workflows/codeql-pico-scripts/pico-build.sh @@ -25,7 +25,7 @@ set -e SOURCE_DIR=$1 OUTPUT_DIR="build" BOARD_NAME="pico" -CMAKE_ARGS="" +CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Release" MAKEFILES_GENERATOR="Unix Makefiles" # Validate arguments diff --git a/.github/workflows/pico-build.yml b/.github/workflows/pico-build.yml index 1cb3e76..159edb5 100644 --- a/.github/workflows/pico-build.yml +++ b/.github/workflows/pico-build.yml @@ -96,6 +96,7 @@ jobs: output_dir: "build" output_ext: "*.uf2 *.elf *.elf.map *.hex *.bin *.dis" output_ignored_dirs: "src/lib" + cmake_args: "-DCMAKE_BUILD_TYPE=Release" - name: Upload Pico Source Code Artifacts uses: actions/upload-artifact@v4