Skip to content

Commit 86c6e05

Browse files
committed
Fix cmake build
1 parent 358588d commit 86c6e05

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/cmake_build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
which curl jq || apt -q update
5151
which curl || apt -yq install curl
5252
which jq || apt -yq install jq
53+
git config --global --add safe.directory $GITHUB_WORKSPACE
54+
cd ${{ inputs.cmake_build_target_directory }}
5355
CONFIG_JSON='${{ inputs.update_cmake_lists_config }}' FAIL_ON_CHANGES=true ${{ steps.script_path.outputs.root }}/.github/workflows/scripts/cmake-update-cmake-lists.sh
5456
- name: CMake build
5557
run: |

.github/workflows/scripts/cmake-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ log "Building Ninja build files for target"
3333
build_dir="${target_dir}/build"
3434
mkdir -p "$build_dir"
3535
cd "${build_dir}" || fatal "Could not 'cd' to ${build_dir}"
36-
ASM="$ASSEMBLY_COMPILER_BIN" "$CMAKE_BIN" build -G Ninja -S ..
36+
ASM="$ASSEMBLY_COMPILER_BIN" "$CMAKE_BIN" -G Ninja -S ..
3737

3838
log "Building target"
3939
"$NINJA_BIN"

0 commit comments

Comments
 (0)