Skip to content

Commit

Permalink
Test unified
Browse files Browse the repository at this point in the history
  • Loading branch information
aelovikov-intel committed Jul 18, 2023
1 parent 7c234e0 commit 53dacd3
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test_unified.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Unified

on:
workflow_call:
inputs:
runner:
type: string

map_str:
type: string
default: '{"Intel": "ubuntu-latest", "AMD": "ubuntu-20.04", "":""}'

workflow_dispatch:
inputs:
predefined_runner:
type: choice
options:
- Intel
- AMD
map_str:
type: choice
options:
- '{"Intel": "ubuntu-latest", "AMD": "ubuntu-20.04", "":""}'

env:
RUNNER: ${{ fromJSON(inputs.map_str)[inputs.predefined_runner] }}

jobs:
test:
runs-on: ${{ fromJSON(inputs.map_str)[inputs.predefined_runner] }}${{ inputs.runner }}
steps:
- run: echo Hello
10 changes: 10 additions & 0 deletions .github/workflows/test_unified_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Unified push

on:
push:

jobs:
test:
uses: ./.github/workflows/test_unified.yml
with:
runner: 'ubuntu-22.04'

0 comments on commit 53dacd3

Please sign in to comment.