Skip to content

Commit

Permalink
GHI #20 Try using reusable workflow instead of action but better
Browse files Browse the repository at this point in the history
  • Loading branch information
doodspav committed Dec 19, 2023
1 parent b3d97b1 commit 87fbdcf
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 611 deletions.
247 changes: 0 additions & 247 deletions .github/actions/test-build-run/action.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .github/workflows/reusable/test-warning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Run Tests with Warnings
on:
workflow_call:
inputs:
os:
description: 'Used to set the runs-on attribute, must be one of macos, ubuntu, windows'
required: true
type: string
default: ''
preset:
description: 'CMake preset used to build patomic and googletest'
required: true
Expand Down Expand Up @@ -31,6 +36,7 @@ on:

jobs:
warning:
runs-on: ${{ inputs.os }}-latest
steps:
- name: Check No Empty Inputs
shell: bash
Expand All @@ -42,6 +48,8 @@ jobs:
if [[ -z "${input_value}" ]]; then
echo "Error: required input '${input_name}' is empty or was not specified."
exit 1
else
echo "${input_name}: ${input_value}"
fi
}
Expand Down
Loading

0 comments on commit 87fbdcf

Please sign in to comment.