diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 1c4d225aa9..587f2c89e5 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -2,9 +2,9 @@ name: HAL Lib CMake Test on: push: - branches: [ "unspun" ] + branches: ["unspun"] pull_request: - branches: [ "unspun" ] + branches: ["unspun"] env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) @@ -18,17 +18,19 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + submodules: recursive - - name: Install ARM Toolchain - run: sudo apt-get install gcc-arm-none-eabi + - name: Install ARM Toolchain + run: sudo apt-get install gcc-arm-none-eabi - - name: Configure CMake - # 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: cmake -S test_cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} --toolchain toolchain.cmake + - name: Configure CMake + # 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: cmake -S test_cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} --toolchain toolchain.cmake - - name: Build - # Build your program with the given configuration - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - + - name: Build + # Build your program with the given configuration + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}