From 61c1c7e99368509be2b7b2bc5edf666e4e7983bb Mon Sep 17 00:00:00 2001 From: Curve Date: Mon, 6 May 2024 23:27:41 +0200 Subject: [PATCH] refactor(ci): modernize cmake build commands --- .github/workflows/build.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d202cd1..44edd2e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,10 +22,9 @@ jobs: run: "sudo apt-get update && sudo apt-get install git build-essential cmake" - name: Compile - run: > - mkdir build && cd build - && cmake .. -Dlime_tests=ON - && cmake --build . --config Debug + run: | + cmake -B build -Dlime_tests=ON + cmake --build build --config Debug - name: Run Tests run: "./build/tests/lime-tests" @@ -42,10 +41,9 @@ jobs: uses: actions/checkout@v3 - name: Compile - run: > - mkdir build && cd build - && cmake .. -Dlime_tests=ON -T ClangCL -A x64 - && cmake --build . --config Debug + run: | + cmake -B build -Dlime_tests=ON -T ClangCL -A x64 + cmake --build build --config Debug - name: Run Tests run: "./build/tests/Debug/lime-tests.exe" @@ -62,10 +60,9 @@ jobs: uses: actions/checkout@v3 - name: Compile - run: > - mkdir build && cd build - && cmake .. -Dlime_tests=ON - && cmake --build . --config Debug + run: | + cmake -B build -Dlime_tests=ON + cmake --build build --config Debug - name: Run Tests run: "./build/tests/Debug/lime-tests.exe"