mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-20 10:41:21 +00:00
add workflow job to test this action with specified generator
This commit is contained in:
parent
d1034b5b62
commit
111de3705b
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
@ -72,3 +72,21 @@ jobs:
|
|||||||
|
|
||||||
- name: Run build result
|
- name: Run build result
|
||||||
run: build/${{ matrix.lang == 'C' && 'hello_world_c' || 'hello_world' }}
|
run: build/${{ matrix.lang == 'C' && 'hello_world_c' || 'hello_world' }}
|
||||||
|
|
||||||
|
use-action-with-specified-generator:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3.3.0
|
||||||
|
|
||||||
|
- name: Install Ninja
|
||||||
|
run: sudo apt install -y ninja-build
|
||||||
|
|
||||||
|
- name: Use this action with specified generator
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
source-dir: test
|
||||||
|
generator: Ninja
|
||||||
|
|
||||||
|
- name: Run build result
|
||||||
|
run: build/hello_world
|
||||||
|
Loading…
Reference in New Issue
Block a user