mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-27 23:37:04 -05:00
git: Add option to customize pattern language repo and git hash with workflow call
This commit is contained in:
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
@@ -8,6 +8,11 @@ on:
|
||||
repository_dispatch:
|
||||
types: [run_tests]
|
||||
workflow_call:
|
||||
inputs:
|
||||
pattern_language_git_repo:
|
||||
type: string
|
||||
pattern_language_git_hash:
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
@@ -63,6 +68,8 @@ jobs:
|
||||
-DIMHEX_PATTERNS_ENABLE_UNIT_TESTS=ON \
|
||||
-DLIBPL_ENABLE_TESTS=OFF \
|
||||
-DLIBPL_ENABLE_CLI=OFF \
|
||||
-DIMHEX_PATTERNS_LIBPL_GIT_REPO="${{ inputs.pattern_language_git_repo }}" \
|
||||
-DIMHEX_PATTERNS_LIBPL_GIT_HASH="${{ inputs.pattern_language_git_hash }}" \
|
||||
-G Ninja \
|
||||
..
|
||||
ninja unit_tests
|
||||
|
||||
Reference in New Issue
Block a user