Skip to content

Commit d520800

Browse files
committed
a
1 parent 8c5e5c6 commit d520800

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/actions/build-test/unix/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ runs:
2929
steps:
3030
- name: Download hazelcast-enterprise-tests.jar
3131
shell: bash
32+
if: ${{ inputs.run_tests }}
3233
run: |
3334
gh api "/repos/hazelcast/private-test-artifacts/contents/certs.jar?ref=data" -H "Accept: application/vnd.github.raw" > hazelcast-enterprise-${{ env.HZ_VERSION }}-tests.jar
3435
env:
@@ -39,13 +40,14 @@ runs:
3940
BUILD_DIR: build
4041
INSTALL: ON
4142
BUILD_TYPE: ${{ inputs.BUILD_TYPE }}
43+
BUILD_TESTS_FLAG: ${{ inputs.run_tests == 'true' && 'ON' || 'OFF' }}
4244
shell: bash
4345
run: |
4446
./scripts/build-unix.sh \
4547
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/destination \
4648
-DBUILD_SHARED_LIBS=${{ inputs.SHARED_LIBS_TOGGLE }} \
4749
-DWITH_OPENSSL=${{ inputs.OPENSSL_TOGGLE }} \
48-
-DBUILD_TESTS=ON \
50+
-DBUILD_TESTS=${BUILD_TESTS_FLAG} \
4951
-DBUILD_EXAMPLES=OFF
5052
5153
- name: Test

.github/actions/build-test/windows/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ runs:
5151

5252
- name: Download hazelcast-enterprise-tests.jar
5353
shell: pwsh
54+
if: ${{ inputs.run_tests }}
5455
run: |
5556
gh api "/repos/hazelcast/private-test-artifacts/contents/certs.jar?ref=data" -H "Accept: application/vnd.github.raw" > hazelcast-enterprise-${{ env.HZ_VERSION }}-tests.jar
5657
env:
@@ -139,14 +140,15 @@ runs:
139140
BIT_VERSION: ${{ inputs.ARCH_ADDRESS_MODEL }}
140141
INSTALL: ON
141142
CXXFLAGS: '/I C:\Thrift\include\'
143+
BUILD_TESTS_FLAG: ${{ inputs.run_tests == 'true' && 'ON' || 'OFF' }}
142144
shell: pwsh
143145
run: |
144146
.\scripts\build-windows.bat `
145147
-DCMAKE_PREFIX_PATH="C:\Boost;C:\Thrift" `
146148
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}\destination `
147149
-DBUILD_SHARED_LIBS=${{ inputs.SHARED_LIBS_TOGGLE }} `
148150
-DWITH_OPENSSL=${{ inputs.OPENSSL_TOGGLE }} `
149-
-DBUILD_TESTS=ON `
151+
-DBUILD_TESTS=${{ env.BUILD_TESTS_FLAG }} `
150152
-DBUILD_EXAMPLES=OFF
151153
152154
- name: Test

.github/actions/coverage-report/action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ runs:
3636
sudo apt-get install -y net-tools libssl-dev gdb gcovr lcov curl
3737
3838
- name: Download hazelcast-enterprise-tests.jar
39+
if: ${{ inputs.run_tests }}
3940
shell: bash
4041
run: |
4142
gh api "/repos/hazelcast/private-test-artifacts/contents/certs.jar?ref=data" -H "Accept: application/vnd.github.raw" > hazelcast-enterprise-${{ env.HZ_VERSION }}-tests.jar
@@ -63,12 +64,13 @@ runs:
6364
BUILD_DIR: build
6465
COVERAGE: ON
6566
BUILD_TYPE: ${{ env.BUILD_TYPE }}
67+
BUILD_TESTS_FLAG: ${{ inputs.run_tests == 'true' && 'ON' || 'OFF' }}
6668
shell: bash
6769
run: |
68-
./scripts/build-unix.sh \
69-
-DBUILD_SHARED_LIBS=ON \
70-
-DWITH_OPENSSL=ON \
71-
-DBUILD_TESTS=ON \
70+
./scripts/build-unix.sh \
71+
-DBUILD_SHARED_LIBS=ON \
72+
-DWITH_OPENSSL=ON \
73+
-DBUILD_TESTS=${BUILD_TESTS_FLAG} \
7274
-DBUILD_EXAMPLES=OFF
7375
7476
- name: Test

0 commit comments

Comments
 (0)