infra-role-beacon-node-windows/tasks/install.yml

40 lines
1019 B
YAML

---
- name: Install MinGW-Nuwen and CMake to compile Nim
win_shell: |
scoop install --no-update-scoop --global mingw-nuwen gcc cmake
- name: Add GCC to the system wide PATH
win_path:
name: 'PATH'
elements:
- 'C:\ProgramData\scoop\apps\mingw-nuwen\current\bin'
- 'C:\ProgramData\scoop\apps\gcc\current\bin'
scope: 'machine'
state: 'present'
register: machine_path
- name: Set CC variable to fix builds
win_path:
name: 'CC'
elements: 'gcc'
scope: 'machine'
state: 'present'
register: machine_cc
- name: Restart host for PATH change to work
win_reboot:
reboot_timeout: 160
when: machine_path.changed or machine_cc.changed
- name: Check installed GCC version
register: gcc_version
win_shell: |
gcc --version
# https://github.com/status-im/nimbus-eth2/issues/6139
- name: Verify GCC version is not 13.2.0
assert:
that: '{{ "13.2.0" not in gcc_version.stdout }}'
fail_msg: 'Binaries built with GCC 13.2.0 can segfault.'
quiet: true