Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions devops/actions/run-tests/e2e/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inputs:
ref:
required: false
binaries_artifact:
# Number of input parameters for manual 'workflow_dispatch' is limited, so
# we treat empty value as 'in-container' when in 'run-only' mode via
# 'workflow_dispatch'.
required: false
testing_mode:
required: true
Expand All @@ -19,12 +22,14 @@ inputs:
sycl_compiler:
required: false


runs:
using: "composite"
steps:
- name: Checkout E2E tests
if: ${{ !(inputs.testing_mode == 'run-only' && inputs.binaries_artifact == 'in-container') }}
if: |
!(inputs.testing_mode == 'run-only'
&& (inputs.binaries_artifact == 'in-container'
|| github.event_name == 'workflow_dispatch'))
uses: actions/checkout@v4
with:
path: llvm
Expand All @@ -33,19 +38,28 @@ runs:
llvm/utils/lit
sycl/test-e2e
- name: Download E2E Binaries
if: ${{ inputs.testing_mode == 'run-only' && inputs.binaries_artifact != 'in-container' }}
if: |
inputs.testing_mode == 'run-only'
&& !(inputs.binaries_artifact == 'in-container'
|| github.event_name == 'workflow_dispatch')
uses: actions/download-artifact@v4
with:
name: ${{ inputs.binaries_artifact }}
- name: Extract E2E Binaries
if: ${{ inputs.testing_mode == 'run-only' && inputs.binaries_artifact != 'in-container' }}
if: |
inputs.testing_mode == 'run-only'
&& !(inputs.binaries_artifact == 'in-container'
|| github.event_name == 'workflow_dispatch')
shell: bash
run: |
mkdir build-e2e
tar -I 'zstd' -xf e2e_binaries.tar.zst -C build-e2e

- name: Extract E2E tests from container image
if: ${{ inputs.testing_mode == 'run-only' && inputs.binaries_artifact == 'in-container' }}
if: |
inputs.testing_mode == 'run-only'
&& (inputs.binaries_artifact == 'in-container'
|| github.event_name == 'workflow_dispatch')
shell: bash
run: |
mkdir build-e2e llvm
Expand Down
Loading