make use action with specified compiler to test invalid compiler name

This commit is contained in:
Alfi Maulana 2023-01-08 13:47:54 +07:00
parent e21712692c
commit 0501ce589b
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4

View File

@ -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: