forked from ROCm/TheRock
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.39 KB
/
ci_linux.yml
File metadata and controls
53 lines (49 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Linux Build and Test
on:
workflow_call:
inputs:
amdgpu_families:
type: string
artifact_run_id:
type: string
test_runs_on:
type: string
expect_failure:
type: boolean
linux_use_prebuilt_artifacts:
type: string
permissions:
contents: read
jobs:
build_linux_packages:
name: Build
if: ${{ inputs.linux_use_prebuilt_artifacts == 'false' }}
uses: ./.github/workflows/build_linux_packages.yml
with:
amdgpu_families: ${{ inputs.amdgpu_families }}
expect_failure: ${{ inputs.expect_failure }}
permissions:
contents: read
id-token: write
test_linux_packages:
needs: [build_linux_packages]
name: Test
# If the dependent job failed/cancelled, this job will not be run
# The linux_use_prebuilt_artifacts "or" statement ensures that tests will run if previous build step is run or skipped.concurrency.
if: >-
${{
!failure() &&
!cancelled() &&
(
inputs.linux_use_prebuilt_artifacts == 'false' ||
inputs.linux_use_prebuilt_artifacts == 'true'
)
}}
strategy:
fail-fast: false
uses: ./.github/workflows/test_packages.yml
with:
amdgpu_families: ${{ inputs.amdgpu_families }}
test_runs_on: ${{ inputs.test_runs_on }}
artifact_run_id: ${{ inputs.artifact_run_id }}
platform: "linux"