From 89bac541684b12615041ac55d56a71c5f30bf84e Mon Sep 17 00:00:00 2001 From: Markus Werle Date: Thu, 14 Sep 2023 22:49:04 +0200 Subject: [PATCH 1/2] add tool_1 test --- .github/workflows/test_tool_1.yml | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/test_tool_1.yml diff --git a/.github/workflows/test_tool_1.yml b/.github/workflows/test_tool_1.yml new file mode 100644 index 0000000..69cf9a2 --- /dev/null +++ b/.github/workflows/test_tool_1.yml @@ -0,0 +1,34 @@ +name: "Test cmake_utilities with tool_1" + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + repository: 'https://github.com/dep-heaven/tool_1' + + - name: Configure CMake + # Configure CMake in a 'build' subdirectory. + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + + - name: Build + # Build your program with the given configuration + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + + - name: Test + working-directory: ${{github.workspace}}/build + run: ctest -C ${{env.BUILD_TYPE}} + From a828da47768ba78f841b64da328454bafe1ee95a Mon Sep 17 00:00:00 2001 From: Markus Werle Date: Thu, 14 Sep 2023 22:52:10 +0200 Subject: [PATCH 2/2] fix URL --- .github/workflows/test_tool_1.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_tool_1.yml b/.github/workflows/test_tool_1.yml index 69cf9a2..3933fa6 100644 --- a/.github/workflows/test_tool_1.yml +++ b/.github/workflows/test_tool_1.yml @@ -18,7 +18,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: - repository: 'https://github.com/dep-heaven/tool_1' + repository: 'dep-heaven/tool_1' - name: Configure CMake # Configure CMake in a 'build' subdirectory.