mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-20 10:41:21 +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
|
||||
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
|
||||
uses: ./
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user