merge workflow job for testing source and build dir input

This commit is contained in:
Alfi Maulana 2023-01-08 14:05:26 +07:00
parent 0a276cb8d8
commit 4f3e895bf2
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4

View File

@ -21,27 +21,13 @@ jobs:
- name: Run build result
run: ${{ matrix.os == 'windows-latest' && 'build\Debug\hello_world.exe' || 'build/hello_world' }}
use-action-with-specified-source-dir:
use-action-with-specified-dir:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3.3.0
- name: Use this action with specified source directory
uses: ./
with:
source-dir: test
- name: Run build result
run: build/hello_world
use-action-with-specified-build-dir:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3.3.0
- name: Use this action with specified build directory
- name: Use this action with specified directory
uses: ./
with:
source-dir: test
@ -50,7 +36,7 @@ jobs:
- name: Run build result
run: test/build/hello_world
- name: Check if default build directory is not exist
- name: Check if the default build directory does not exist
run: test ! -d build
use-action-with-specified-compiler: