mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-21 19:11:21 +00:00
add workflow job to test this action with specified compiler
This commit is contained in:
parent
0b67ed5990
commit
582c9a40fa
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@ -53,6 +53,22 @@ jobs:
|
||||
- name: Check if default build directory is not exist
|
||||
run: test ! -d build
|
||||
|
||||
use-action-with-specified-compiler:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3.3.0
|
||||
|
||||
- name: Use this action with specified compiler
|
||||
uses: ./
|
||||
with:
|
||||
source-dir: test
|
||||
c-compiler: clang
|
||||
cxx-compiler: clang++
|
||||
|
||||
- name: Run build result
|
||||
run: build/hello_world
|
||||
|
||||
use-action-with-additional-args:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
Loading…
Reference in New Issue
Block a user