-
Notifications
You must be signed in to change notification settings - Fork 48
112 lines (106 loc) · 3.64 KB
/
create_llvm_artefacts.yml
File metadata and controls
112 lines (106 loc) · 3.64 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Workflow for creating llvm artefacts
name: create llvm artefacts
on:
workflow_call:
inputs:
llvm_branch:
required: false
type: string
llvm_version:
required: true
type: string
description: 'llvm (major) version - 20, 21 or main'
use_github_cache:
required: false
type: boolean
default: false
target_list:
type: string
description: "List of targets (not LLVM targets, test targets e.g. host_aarch64_linux)"
required: true
permissions: {}
jobs:
create_llvm_artifacts_ubuntu_22_x86_64:
# Need to build this for all linux targets.
# TODO: Review if we can skip for riscv64
if: contains(inputs.target_list, '_linux')
runs-on: ubuntu-22.04
steps:
- name: Checkout repo ock platform
uses: actions/checkout@v6
- name: build llvm artefact
uses: ./.github/actions/do_build_llvm
with:
llvm_branch: ${{ inputs.llvm_branch }}
llvm_version: ${{ inputs.llvm_version }}
os: ubuntu-22.04
use_github_cache: ${{ inputs.use_github_cache }}
create_llvm_artifacts_ubuntu_24_x86_64:
# We only currently need this for riscv64 jobs
if: contains(inputs.target_list, 'host_riscv64_linux')
runs-on: ubuntu-24.04
steps:
- name: Checkout repo ock platform
uses: actions/checkout@v6
- name: build llvm artefact
uses: ./.github/actions/do_build_llvm
with:
llvm_branch: ${{ inputs.llvm_branch }}
llvm_version: ${{ inputs.llvm_version }}
os: ubuntu-24.04
use_github_cache: ${{ inputs.use_github_cache }}
create_llvm_artifacts_ubuntu_22_x86:
if: contains(inputs.target_list, 'host_i686_linux')
runs-on: ubuntu-22.04
steps:
- name: Checkout repo ock platform
uses: actions/checkout@v6
- name: build llvm artefact
uses: ./.github/actions/do_build_llvm
with:
llvm_branch: ${{ inputs.llvm_branch }}
llvm_version: ${{ inputs.llvm_version }}
os: ubuntu-22.04
arch: x86
use_github_cache: ${{ inputs.use_github_cache }}
create_llvm_artifacts_ubuntu_22_aarch64:
if: contains(inputs.target_list, 'host_aarch64_linux')
runs-on: ubuntu-22.04
steps:
- name: Checkout repo ock platform
uses: actions/checkout@v6
- name: build llvm artefact
uses: ./.github/actions/do_build_llvm
with:
llvm_branch: ${{ inputs.llvm_branch }}
llvm_version: ${{ inputs.llvm_version }}
os: ubuntu-22.04
arch: aarch64
use_github_cache: ${{ inputs.use_github_cache }}
create_llvm_artifacts_ubuntu_24_riscv64:
if: contains(inputs.target_list, 'host_riscv64_linux')
runs-on: ubuntu-24.04
steps:
- name: Checkout repo ock platform
uses: actions/checkout@v6
- name: build llvm artefact
uses: ./.github/actions/do_build_llvm
with:
llvm_branch: ${{ inputs.llvm_branch }}
llvm_version: ${{ inputs.llvm_version }}
os: ubuntu-24.04
arch: riscv64
use_github_cache: ${{ inputs.use_github_cache }}
create_llvm_artifacts_windows_2025_x86_64:
if: contains(inputs.target_list, 'host_x86_64_windows')
runs-on: windows-2025
steps:
- name: Checkout repo ock platform
uses: actions/checkout@v6
- name: build llvm artefact
uses: ./.github/actions/do_build_llvm
with:
llvm_branch: ${{ inputs.llvm_branch }}
llvm_version: ${{ inputs.llvm_version }}
os: 'windows-2025'
use_github_cache: ${{ inputs.use_github_cache }}