mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-21 19:11:21 +00:00
ci: merge jobs for testing action with specified generator and compilers
This commit is contained in:
parent
cc3b1b7f50
commit
baf303f121
23
.github/workflows/test.yml
vendored
23
.github/workflows/test.yml
vendored
@ -108,7 +108,7 @@ jobs:
|
||||
run-test: true
|
||||
test-args: -R test ${{ matrix.compiler == 'msvc' && '-C Debug' || '' }}
|
||||
|
||||
specified-compiler-usage:
|
||||
specified-generator-and-compiler-usage:
|
||||
runs-on: ${{ matrix.os }}-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@ -118,7 +118,7 @@ jobs:
|
||||
- name: Check out this repository
|
||||
uses: actions/checkout@v3.5.3
|
||||
|
||||
- name: Use this action with specified compilers
|
||||
- name: Use this action with specified generator and compilers
|
||||
uses: ./
|
||||
with:
|
||||
source-dir: test
|
||||
@ -130,22 +130,3 @@ jobs:
|
||||
build-args: --target test_c --target test_cpp
|
||||
run-test: true
|
||||
test-args: -R test
|
||||
|
||||
specified-generator-usage:
|
||||
runs-on: ${{ matrix.os }}-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows, ubuntu, macos]
|
||||
steps:
|
||||
- name: Check out this repository
|
||||
uses: actions/checkout@v3.5.3
|
||||
|
||||
- name: Use this action with a specified generator
|
||||
uses: ./
|
||||
with:
|
||||
source-dir: test
|
||||
generator: Ninja
|
||||
run-build: true
|
||||
run-test: true
|
||||
test-args: -R hello_world
|
||||
|
Loading…
Reference in New Issue
Block a user