mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-11 03:31:21 +00:00
ci: modify test-action-with-custom-tools
job to `test-action-with-custom-generator
This commit is contained in:
parent
d4c133a7dc
commit
c6e78d53e6
24
.github/workflows/test.yaml
vendored
24
.github/workflows/test.yaml
vendored
@ -166,13 +166,9 @@ jobs:
|
||||
build-config: Debug
|
||||
tests-regex: test
|
||||
|
||||
test-action-with-custom-tools:
|
||||
name: Test Action With Custom Tools
|
||||
runs-on: ${{ matrix.os }}-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows, ubuntu, macos]
|
||||
test-action-with-custom-generator:
|
||||
name: Test Action With Custom Generator
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.1.2
|
||||
@ -187,19 +183,13 @@ jobs:
|
||||
- name: Setup Ninja
|
||||
uses: seanmiddleditch/gha-setup-ninja@v4
|
||||
|
||||
- name: Configure and Build Project
|
||||
- name: Configure Project
|
||||
id: cmake-action
|
||||
uses: ./cmake-action
|
||||
with:
|
||||
source-dir: cmake-action/test
|
||||
generator: Ninja
|
||||
c-compiler: clang
|
||||
cxx-compiler: clang++
|
||||
options: CHECK_USING_CLANG=ON
|
||||
build-args: --target test_c --target test_cpp
|
||||
run-build: false
|
||||
|
||||
- name: Test Project
|
||||
uses: threeal/ctest-action@v1.0.0
|
||||
with:
|
||||
test-dir: ${{ steps.cmake-action.outputs.build-dir }}
|
||||
tests-regex: test
|
||||
- name: Build Project
|
||||
run: ninja -C ${{ steps.cmake-action.outputs.build-dir }}
|
||||
|
Loading…
Reference in New Issue
Block a user