From 5bb3770662ef49d3334b4ae3ff47ec4250c2a248 Mon Sep 17 00:00:00 2001 From: yjdwbj Date: Sun, 7 Jan 2024 23:54:52 +0800 Subject: [PATCH] Update cmake-multi-platform.yml --- .github/workflows/cmake-multi-platform.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index e4ae513..869e02a 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -66,10 +66,9 @@ jobs: # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type run: > - PATH=$ARM_NONE_EABI_GCC_PATH:$PATH cmake -B ${{ steps.strings.outputs.build-output-dir }} - -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} - -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} + -DCMAKE_CXX_COMPILER=$ARM_NONE_EABI_GCC_PATH/${{ matrix.cpp_compiler }} + -DCMAKE_C_COMPILER=$ARM_NONE_EABI_GCC_PATH/${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DUSE_FREERTOS=1 -S ${{ github.workspace }} @@ -77,7 +76,6 @@ jobs: env: CC: ${{ matrix.c_compiler }} CXX: ${{ matrix.cpp_compiler }} - PATH: $ARM_NONE_EABI_GCC_PATH:$PATH - name: Build # Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).