add workflow job to test this action with specified generator

This commit is contained in:
Alfi Maulana 2023-01-08 14:31:58 +07:00
parent d1034b5b62
commit 111de3705b
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4

View File

@ -72,3 +72,21 @@ jobs:
- name: Run build result
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