Skip to content

Commit

Permalink
.github/workflows: start ninja with the "-C" option
Browse files Browse the repository at this point in the history
Let's make this a single command, removing the overhead for two "cd"
commands (the latter of which had no effect anyway because it was the
last command in the shell process).
  • Loading branch information
MaxKellermann committed Jan 21, 2025
1 parent 35e0e62 commit 5420d8f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_linux_x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-S ./ -B ./build
- name: Ninja
run: cd build && ninja && cd ..
run: ninja -C build
- name: Create package
run: |
mkdir accounts logs save scripts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_linux_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-S ./ -B ./build
- name: Ninja
run: cd build && ninja && cd ..
run: ninja -C build
- name: Create package
run: |
mkdir accounts logs save scripts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_osx_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
mkdir -p build
cmake -G "Ninja" -DCMAKE_BUILD_TYPE="Nightly" -DCMAKE_TOOLCHAIN_FILE="$CMAKE_TCH" -S . -B ./build
- name: Ninja
run: cd build && ninja && cd ..
run: ninja -C build
- name: Create package
run: |
pwd
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_osx_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
mkdir -p build
cmake -G "Ninja" -DCMAKE_BUILD_TYPE="Nightly" -DCMAKE_TOOLCHAIN_FILE="$CMAKE_TCH" -S . -B ./build
- name: Ninja
run: cd build && ninja && cd ..
run: ninja -C build
- name: Create package
run: |
pwd
Expand Down

0 comments on commit 5420d8f

Please sign in to comment.