From 53dacd3d68940831da1036be11854ffb668b8f6e Mon Sep 17 00:00:00 2001 From: Andrei Elovikov Date: Tue, 18 Jul 2023 14:07:02 -0700 Subject: [PATCH] Test unified --- .github/workflows/test_unified.yml | 32 +++++++++++++++++++++++++ .github/workflows/test_unified_push.yml | 10 ++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/test_unified.yml create mode 100644 .github/workflows/test_unified_push.yml diff --git a/.github/workflows/test_unified.yml b/.github/workflows/test_unified.yml new file mode 100644 index 0000000000000..2d414f30a7c11 --- /dev/null +++ b/.github/workflows/test_unified.yml @@ -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 diff --git a/.github/workflows/test_unified_push.yml b/.github/workflows/test_unified_push.yml new file mode 100644 index 0000000000000..c45f950233c02 --- /dev/null +++ b/.github/workflows/test_unified_push.yml @@ -0,0 +1,10 @@ +name: Unified push + +on: + push: + +jobs: + test: + uses: ./.github/workflows/test_unified.yml + with: + runner: 'ubuntu-22.04'