|
1 | 1 | ---
|
2 | 2 |
|
3 |
| -- name: build harvest tests for every os/arch combination |
4 |
| - ansible.builtin.shell: "CGO_ENABLED=0 GOOS=linux GOARCH={{item}} make build-harvest-tests && mv {{ default_binary_name }} {{ os_arch_binary_name_tpl | replace('%GOOS%', 'linux') | replace('%GOARCH%', item) }}" |
| 3 | +- name: Build harvest tests for Linux arch combination |
| 4 | + ansible.builtin.shell: > |
| 5 | + CGO_ENABLED=0 GOOS=linux GOARCH={{ item }} make build-harvest-tests && |
| 6 | + mv {{ default_binary_name }} {{ os_arch_binary_name_tpl | replace('%GOOS%', 'linux') | replace('%GOARCH%', item) }} |
5 | 7 | args:
|
6 | 8 | chdir: "{{ agent_root_dir }}"
|
| 9 | + creates: "{{ os_arch_binary_name_tpl | replace('%GOOS%', 'linux') | replace('%GOARCH%', item) }}" |
7 | 10 | loop: "{{ goos_arch.linux }}"
|
8 | 11 |
|
9 |
| -- name: build harvest tests for every os/arch combination |
10 |
| - ansible.builtin.shell: "GOOS=darwin GOARCH={{item}} make build-harvest-tests && mv {{ default_binary_name }} {{ os_arch_binary_name_tpl | replace('%GOOS%', 'darwin') | replace('%GOARCH%', item) }}" |
| 12 | +- name: Build harvest tests for Linux arch combination - FIPS |
| 13 | + ansible.builtin.shell: > |
| 14 | + CGO_ENABLED=1 GOEXPERIMENT=boringcrypto GOOS=linux GOARCH={{ item }} |
| 15 | + {% if item == 'arm64' %}CC=aarch64-linux-gnu-gcc{% endif %} |
| 16 | + make build-harvest-tests-fips && |
| 17 | + mv {{ default_binary_name }} {{ os_arch_binary_name_tpl_fips | replace('%GOOS%', 'linux') | replace('%GOARCH%', item) }} |
11 | 18 | args:
|
12 | 19 | chdir: "{{ agent_root_dir }}"
|
| 20 | + creates: "{{ os_arch_binary_name_tpl_fips | replace('%GOOS%', 'linux') | replace('%GOARCH%', item) }}" |
| 21 | + loop: "{{ goos_arch.linux_fips }}" |
| 22 | + |
| 23 | +- name: Build harvest tests for Darwin arch combination |
| 24 | + ansible.builtin.shell: > |
| 25 | + GOOS=darwin GOARCH={{ item }} make build-harvest-tests && |
| 26 | + mv {{ default_binary_name }} {{ os_arch_binary_name_tpl | replace('%GOOS%', 'darwin') | replace('%GOARCH%', item) }} |
| 27 | + args: |
| 28 | + chdir: "{{ agent_root_dir }}" |
| 29 | + creates: "{{ os_arch_binary_name_tpl | replace('%GOOS%', 'darwin') | replace('%GOARCH%', item) }}" |
13 | 30 | loop: "{{ goos_arch.darwin }}"
|
14 | 31 |
|
15 |
| -- name: build harvest tests for every os/arch combination |
16 |
| - ansible.builtin.shell: "GOOS=windows GOARCH={{item}} make build-harvest-tests && mv {{ default_binary_name }}.exe {{ os_arch_binary_name_tpl | replace('%GOOS%', 'win32nt') | replace('%GOARCH%', item) }}.exe" |
| 32 | +- name: Build harvest tests for Windows arch combination |
| 33 | + ansible.builtin.shell: > |
| 34 | + GOOS=windows GOARCH={{ item }} make build-harvest-tests && |
| 35 | + mv {{ default_binary_name }}.exe {{ os_arch_binary_name_tpl | replace('%GOOS%', 'win32nt') | replace('%GOARCH%', item) }}.exe |
17 | 36 | args:
|
18 | 37 | chdir: "{{ agent_root_dir }}"
|
| 38 | + creates: "{{ os_arch_binary_name_tpl | replace('%GOOS%', 'win32nt') | replace('%GOARCH%', item) }}.exe" |
19 | 39 | loop: "{{ goos_arch.windows }}"
|
20 | 40 |
|
21 | 41 |
|
|
0 commit comments