mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-23 12:01:20 +00:00
make use action with specified compiler to test invalid compiler name
This commit is contained in:
parent
e21712692c
commit
0501ce589b
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
@ -62,6 +62,18 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3.3.0
|
uses: actions/checkout@v3.3.0
|
||||||
|
|
||||||
|
- name: Use this action with specified invalid compiler
|
||||||
|
id: failed_step
|
||||||
|
continue-on-error: true
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
source-dir: test
|
||||||
|
c-compiler: ${{ matrix.lang == 'C' && 'invalid' || '' }}
|
||||||
|
cxx-compiler: ${{ matrix.lang == 'CXX' && 'invalid' || '' }}
|
||||||
|
|
||||||
|
- name: Check if previous step is failing
|
||||||
|
run: ${{ steps.failed_step.outcome == 'failure' && 'true' || 'false' }}
|
||||||
|
|
||||||
- name: Use this action with specified compiler
|
- name: Use this action with specified compiler
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user