|
| 1 | +name: Git Bisect Test |
| 2 | +on: |
| 3 | + |
| 4 | + # automatic on every pull request |
| 5 | + pull_request: |
| 6 | + |
| 7 | +env: |
| 8 | + boost_version: 1.78.0 |
| 9 | + boost_archive_name: 'boost_1_78_0.tar.gz' |
| 10 | + boost_folder_name: 'boost_1_78_0' |
| 11 | + boost_include_folder: 'C:\Boost\include\boost-1_78' |
| 12 | + boost_url: 'https://archives.boost.io/release/1.78.0/source/boost_1_78_0.tar.gz' |
| 13 | + thrift_version: 0.13.0 |
| 14 | + run_tests: false |
| 15 | + |
| 16 | +jobs: |
| 17 | + # get |
| 18 | + get-refs: |
| 19 | + name: Get Refs |
| 20 | + runs-on: ubuntu-latest |
| 21 | + outputs: |
| 22 | + ref: ${{ steps.get-refs.outputs.ref }} |
| 23 | + merged-ref: ${{ steps.get-refs.outputs.merged-ref }} |
| 24 | + |
| 25 | + steps: |
| 26 | + - name: Get Refs |
| 27 | + id: get-refs |
| 28 | + shell: bash |
| 29 | + run: | |
| 30 | + echo "EVENT: ${{ github.event_name }}" |
| 31 | + if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then |
| 32 | + echo "PR_NUMBER: ${{ inputs.pr_number }}" |
| 33 | + echo "PR_COMMIT: ${{ inputs.pr_commit }}" |
| 34 | + echo "ref=refs/pull/${{ inputs.pr_number }}/merge" >> $GITHUB_OUTPUT |
| 35 | + echo "merged-ref=${{ inputs.pr_commit }}" >> $GITHUB_OUTPUT |
| 36 | + else |
| 37 | + echo "PR_NUMBER: ${{ github.event.pull_request.number }}" |
| 38 | + echo "ref=refs/pull/${{ github.event.pull_request.number }}/merge" >> $GITHUB_OUTPUT |
| 39 | + echo "merged-ref=''" >> $GITHUB_OUTPUT |
| 40 | + fi |
| 41 | +
|
| 42 | + Ubuntu-x86_64: |
| 43 | + needs: get-refs |
| 44 | + strategy: |
| 45 | + fail-fast: false |
| 46 | + matrix: |
| 47 | + |
| 48 | + build_type: |
| 49 | + - type: Debug |
| 50 | + warn_as_err: ON |
| 51 | + |
| 52 | + shared_libs: |
| 53 | + - toggle: OFF |
| 54 | + name: Static |
| 55 | + |
| 56 | + with_openssl: |
| 57 | + - toggle: ON |
| 58 | + name: SSL |
| 59 | + |
| 60 | + runs-on: ubuntu-latest |
| 61 | + |
| 62 | + name: ubuntu-x64-(${{ matrix.build_type.type }}, ${{ matrix.shared_libs.name }}, ${{ matrix.with_openssl.name }}) |
| 63 | + steps: |
| 64 | + |
| 65 | + - uses: actions/checkout@v4 |
| 66 | + with: |
| 67 | + ref: ${{ needs.get-refs.outputs.ref }} |
| 68 | + token: ${{ secrets.GH_TOKEN }} |
| 69 | + |
| 70 | + - uses: actions/checkout@v4 |
| 71 | + with: |
| 72 | + repository: 'hazelcast/hazelcast-mono' |
| 73 | + ref: '1ac9c7eaea720a82fbe6800ca768eae064f71155' |
| 74 | + path: 'hazelcast-repo' |
| 75 | + token: ${{ secrets.GH_TOKEN }} |
| 76 | + |
| 77 | + - uses: ./.github/actions/build-test/ubuntu-x86_64 |
| 78 | + with: |
| 79 | + GH_TOKEN: ${{ secrets.GH_TOKEN }} |
| 80 | + BOOST_VERSION: ${{ env.boost_version }} |
| 81 | + THRIFT_VERSION: ${{ env.thrift_version }} |
| 82 | + WARN_AS_ERR: ${{ matrix.build_type.warn_as_err }} |
| 83 | + BUILD_TYPE: ${{ matrix.build_type.type }} |
| 84 | + SHARED_LIBS_TOGGLE: ${{ matrix.shared_libs.toggle }} |
| 85 | + OPENSSL_TOGGLE: ${{ matrix.with_openssl.toggle }} |
| 86 | + RUN_TESTS: ${{ env.run_tests }} |
| 87 | + HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }} |
| 88 | + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} |
| 89 | + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
| 90 | + HZ_TEST_AWS_INSTANCE_PRIVATE_IP: ${{ secrets.HZ_TEST_AWS_INSTANCE_PRIVATE_IP }} |
0 commit comments