File tree 5 files changed +50
-5
lines changed 5 files changed +50
-5
lines changed Original file line number Diff line number Diff line change
1
+ - name : install gn build dependencies
2
+ include_tasks : " {{ v8deps_include }}"
3
+ loop_control :
4
+ loop_var : v8deps_include
5
+ with_first_found :
6
+ - files :
7
+ - " {{ role_path }}/tasks/partials/{{ os }}-{{ arch }}.yml"
8
+ - " {{ role_path }}/tasks/partials/{{ os }}.yml"
9
+ - " {{ role_path }}/tasks/partials/{{ os|stripversion }}.yml"
10
+ skip : true
11
+
1
12
- name : check existing gn
2
13
ansible.builtin.command : " {{ gn_dest_dir }}/gn --version"
3
14
changed_when : no
19
30
ansible.builtin.set_fact :
20
31
rebuild_gn : " {{ not gn_installed_version.stdout|default('') is search(gn_git.after[:7]) }}"
21
32
22
- # Requires a C++17 compiler. At the moment we're only building on CentOS/RHEL
23
- # so have devtoolset-8 available.
33
+ # Requires a C++17 compiler.
24
34
- name : build gn
25
35
ansible.builtin.shell : |
26
36
python3 build/gen.py && \
27
37
{{ gn_select_compiler }} && \
28
- {{ gn_dest_dir }}/ ninja -C out && \
38
+ ninja -C out && \
29
39
out/gn_unittests
30
40
args :
31
41
chdir : " {{ gn_git_dir }}"
Original file line number Diff line number Diff line change
1
+ # ninja-build on RHEL 8 is in the CodeReady Linux Builder repository.
2
+ - name : enable codeready-builder repository
3
+ community.general.rhsm_repository :
4
+ name : codeready-builder-for-rhel-8-ppc64le-rpms
5
+ state : enabled
6
+
7
+ - name : run common RHEL 8 tasks
8
+ ansible.builtin.include_tasks : rhel8.yml
Original file line number Diff line number Diff line change
1
+ # ninja-build on RHEL 8 is in the CodeReady Linux Builder repository.
2
+ - name : enable codeready-builder repository
3
+ community.general.rhsm_repository :
4
+ name : codeready-builder-for-rhel-8-s390x-rpms
5
+ state : enabled
6
+
7
+ - name : run common RHEL 8 tasks
8
+ ansible.builtin.include_tasks : rhel8.yml
Original file line number Diff line number Diff line change
1
+ ---
2
+ # Install gn build dependencies for RHEL 8
3
+
4
+ - name : install gn build dependencies for {{ os }}-{{ arch }}
5
+ package :
6
+ name : " {{ package }}"
7
+ state : present
8
+ use : dnf
9
+ loop_control :
10
+ loop_var : package
11
+ notify : package updated
12
+ with_items :
13
+ # ansible doesn't like empty lists
14
+ - " {{ packages[os+'_'+arch]|default('[]') }}"
15
+ - " {{ packages[os]|default('[]') }}"
16
+ - " {{ packages[os|stripversion]|default('[]') }}"
Original file line number Diff line number Diff line change 1
1
---
2
2
3
3
compiler : {
4
- ' rhel7 ' : ' . /opt/rh/devtoolset-8/enable' ,
5
- ' rhel8 ' : ' . /opt/rh/gcc-toolset-11/enable'
4
+ ' rhel8 ' : ' . /opt/rh/gcc-toolset-12/enable'
6
5
}
7
6
8
7
gn_select_compiler : " {{ compiler[os]|default(compiler[os|stripversion])|default('true') }}"
9
8
gn_version : 88e8054
9
+
10
+ packages : {
11
+ ' rhel8 ' : ' ninja-build,gcc-toolset-12'
12
+ }
You can’t perform that action at this time.
0 commit comments