-
Notifications
You must be signed in to change notification settings - Fork 50
Merge nightly + PR builder test GitHub Actions #1243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
cb8ed2e
Merge coverage report
JackPGreen dff7c7e
Do ubuntu x64
JackPGreen 39b846c
Do Ubuntu i386
JackPGreen dc00b76
Do Mac
JackPGreen 81d871e
Do Windows
JackPGreen e12f270
PR target
JackPGreen 4b6ea4d
Fix all the things
JackPGreen 73563ea
Centralise
JackPGreen 889a2d4
Fix unix
JackPGreen e1da701
Fix i386
JackPGreen 1853d5b
Fix Mac
JackPGreen fa94151
Proper naming
JackPGreen 3d44317
Convert to shared matrixes
JackPGreen c3f4394
Revert "Convert to shared matrixes"
JackPGreen 05fb155
Try to fix code coverage
JackPGreen aa11168
Downgrade ubuntu
JackPGreen 54f4dd1
try inlining
JackPGreen 820cd14
Rename
JackPGreen f962bb6
Revert "try inlining"
JackPGreen da35126
Partial inline
JackPGreen 8a562b4
Downgrade ubuntu
JackPGreen f409318
Fix ubuntu mess
JackPGreen 0e2f797
Remove todo
JackPGreen b513da7
Try again
JackPGreen 2ac47ca
Partial revert
JackPGreen 0650dc9
Partial revert
JackPGreen 30ece25
Was failing, revert more
JackPGreen d89b705
Merge branch 'merge-nightly-and-pr-builds' of https://github.com/haze…
JackPGreen ce134c4
Add `GH_TOKEN`
JackPGreen 6bb6031
Revert `pull_request`
JackPGreen ed25055
Formatting
JackPGreen 385e6ff
Remove maven test
JackPGreen 590e1da
Remove print
JackPGreen 0e1ecfa
Multiline
JackPGreen e750c0a
Formatting
JackPGreen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| name: Build & Test - macOS - x86-64 | ||
|
|
||
| inputs: | ||
| GH_TOKEN: | ||
| required: true | ||
| BOOST_VERSION: | ||
| required: true | ||
| WARN_AS_ERR: | ||
| required: true | ||
| BUILD_TYPE: | ||
| required: true | ||
| SHARED_LIBS_TOGGLE: | ||
| required: true | ||
| OPENSSL_TOGGLE: | ||
| required: true | ||
| RUN_TESTS: | ||
| required: true | ||
| HAZELCAST_ENTERPRISE_KEY: | ||
| required: true | ||
| AWS_ACCESS_KEY_ID: | ||
| required: true | ||
| AWS_SECRET_ACCESS_KEY: | ||
| required: true | ||
| HZ_TEST_AWS_INSTANCE_PRIVATE_IP: | ||
| required: true | ||
|
|
||
| env: | ||
| # Not possible to set this as a default | ||
| # https://github.com/orgs/community/discussions/46670 | ||
| shell: bash | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Read Config | ||
| shell: ${{ env.shell }} | ||
| run: cat .github/config.env >> $GITHUB_ENV | ||
|
|
||
| - name: Install Dependencies | ||
| shell: ${{ env.shell }} | ||
| run: | | ||
| sudo ./scripts/install-boost.sh ${{ inputs.BOOST_VERSION }} | ||
| brew install [email protected] thrift curl | ||
|
|
||
| - name: Setup JDK | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: ${{ env.JAVA_VERSION }} | ||
| distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
|
|
||
| - uses: ./.github/actions/build-test/unix | ||
| with: | ||
| GH_TOKEN: ${{ inputs.GH_TOKEN }} | ||
| BOOST_VERSION: ${{ inputs.BOOST_VERSION }} | ||
| THRIFT_VERSION: ${{ inputs.THRIFT_VERSION }} | ||
| WARN_AS_ERR: ${{ inputs.WARN_AS_ERR }} | ||
| BUILD_TYPE: ${{ inputs.BUILD_TYPE }} | ||
| SHARED_LIBS_TOGGLE: ${{ inputs.SHARED_LIBS_TOGGLE }} | ||
| OPENSSL_TOGGLE: ${{ inputs.OPENSSL_TOGGLE }} | ||
| RUN_TESTS: ${{ inputs.RUN_TESTS }} | ||
| HAZELCAST_ENTERPRISE_KEY: ${{ inputs.HAZELCAST_ENTERPRISE_KEY }} | ||
| AWS_ACCESS_KEY_ID: ${{ inputs.AWS_ACCESS_KEY_ID }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ inputs.AWS_SECRET_ACCESS_KEY }} | ||
| HZ_TEST_AWS_INSTANCE_PRIVATE_IP: ${{ inputs.HZ_TEST_AWS_INSTANCE_PRIVATE_IP }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,110 @@ | ||
| name: Build & Test - Ubuntu - i386 | ||
|
|
||
| inputs: | ||
| GH_TOKEN: | ||
| required: true | ||
| BOOST_VERSION: | ||
| required: true | ||
| THRIFT_VERSION: | ||
| required: true | ||
| WARN_AS_ERR: | ||
| required: true | ||
| BUILD_TYPE: | ||
| required: true | ||
| SHARED_LIBS_TOGGLE: | ||
| required: true | ||
| OPENSSL_TOGGLE: | ||
| required: true | ||
| RUN_TESTS: | ||
| required: true | ||
| HAZELCAST_ENTERPRISE_KEY: | ||
| required: true | ||
| AWS_ACCESS_KEY_ID: | ||
| required: true | ||
| AWS_SECRET_ACCESS_KEY: | ||
| required: true | ||
| HZ_TEST_AWS_INSTANCE_PRIVATE_IP: | ||
| required: true | ||
|
|
||
| env: | ||
| # Not possible to set this as a default | ||
| # https://github.com/orgs/community/discussions/46670 | ||
| shell: bash | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Read Config | ||
| shell: ${{ env.shell }} | ||
| run: cat .github/config.env >> $GITHUB_ENV | ||
|
|
||
| # Install Java via `apt`, can't use the `setup-java` action on this image | ||
| # `setup-java` is written in TypeScript and requires a compatible Node installation | ||
| # Newest available version for this image is Node 8, which is too old for any version to run against | ||
| # https://github.com/actions/setup-node/issues/922 | ||
| - name: Install Necessary Packages | ||
| shell: ${{ env.shell }} | ||
| run: | | ||
| apt-get update | ||
| apt-get install -y build-essential cmake curl git libssl-dev maven net-tools openjdk-${{ env.JAVA_VERSION }}-jre-headless gdb curl | ||
|
|
||
| - name: Make sure the target architecture is 32 bit | ||
| shell: ${{ env.shell }} | ||
| run: | | ||
| echo 'int main() { return sizeof(void*) != 4; }' > test.c | ||
| gcc test.c -oa | ||
| ./a | ||
| rm a test.c | ||
|
|
||
| # `apt-get` brings in `3.6` which is too old to be compatible with Java 17 | ||
| - name: Install Maven | ||
| shell: ${{ env.shell }} | ||
| run: | | ||
| install_dir="/opt/maven" | ||
| mkdir ${install_dir} | ||
nishaatr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| curl \ | ||
| --fail \ | ||
| --silent \ | ||
| --show-error \ | ||
| --location \ | ||
| https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/${{ env.MAVEN_VERSION }}/apache-maven-${{ env.MAVEN_VERSION }}-bin.tar.gz | | ||
| tar \ | ||
| --extract \ | ||
| --gzip \ | ||
| --strip-components=1 \ | ||
| --directory ${install_dir} | ||
| echo "${install_dir}/bin" >> $GITHUB_PATH | ||
|
|
||
| - name: Install Boost | ||
| shell: ${{ env.shell }} | ||
| run: | | ||
| ./scripts/install-boost.sh ${{ inputs.BOOST_VERSION }} | ||
|
|
||
| - name: Install Thrift | ||
| shell: ${{ env.shell }} | ||
| run: | | ||
| ./scripts/install-thrift.sh ${{ inputs.THRIFT_VERSION }} | ||
nishaatr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Configure Resources | ||
| if: ${{ inputs.run_tests }} | ||
| shell: ${{ env.shell }} | ||
| run: | | ||
| ulimit -c unlimited | ||
|
|
||
| sh -c "echo 'core' > /proc/sys/kernel/core_pattern" | ||
nishaatr marked this conversation as resolved.
Show resolved
Hide resolved
nishaatr marked this conversation as resolved.
Show resolved
Hide resolved
nishaatr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| sh -c "echo '1' > /proc/sys/kernel/core_uses_pid" | ||
|
|
||
| - uses: ./.github/actions/build-test/unix | ||
| with: | ||
| GH_TOKEN: ${{ inputs.GH_TOKEN }} | ||
| BOOST_VERSION: ${{ inputs.BOOST_VERSION }} | ||
| THRIFT_VERSION: ${{ inputs.THRIFT_VERSION }} | ||
| WARN_AS_ERR: ${{ inputs.WARN_AS_ERR }} | ||
| BUILD_TYPE: ${{ inputs.BUILD_TYPE }} | ||
| SHARED_LIBS_TOGGLE: ${{ inputs.SHARED_LIBS_TOGGLE }} | ||
| OPENSSL_TOGGLE: ${{ inputs.OPENSSL_TOGGLE }} | ||
| RUN_TESTS: ${{ inputs.RUN_TESTS }} | ||
| HAZELCAST_ENTERPRISE_KEY: ${{ inputs.HAZELCAST_ENTERPRISE_KEY }} | ||
| AWS_ACCESS_KEY_ID: ${{ inputs.AWS_ACCESS_KEY_ID }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ inputs.AWS_SECRET_ACCESS_KEY }} | ||
| HZ_TEST_AWS_INSTANCE_PRIVATE_IP: ${{ inputs.HZ_TEST_AWS_INSTANCE_PRIVATE_IP }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| name: Build & Test - Ubuntu - x86-64 | ||
|
|
||
| inputs: | ||
| GH_TOKEN: | ||
| required: true | ||
| BOOST_VERSION: | ||
| required: true | ||
| THRIFT_VERSION: | ||
| required: true | ||
| WARN_AS_ERR: | ||
| required: true | ||
| BUILD_TYPE: | ||
| required: true | ||
| SHARED_LIBS_TOGGLE: | ||
| required: true | ||
| OPENSSL_TOGGLE: | ||
| required: true | ||
| RUN_TESTS: | ||
| required: true | ||
| HAZELCAST_ENTERPRISE_KEY: | ||
| required: true | ||
| AWS_ACCESS_KEY_ID: | ||
| required: true | ||
| AWS_SECRET_ACCESS_KEY: | ||
| required: true | ||
| HZ_TEST_AWS_INSTANCE_PRIVATE_IP: | ||
| required: true | ||
|
|
||
| env: | ||
| # Not possible to set this as a default | ||
| # https://github.com/orgs/community/discussions/46670 | ||
| shell: bash | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Install Necessary Packages | ||
| shell: ${{ env.shell }} | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y net-tools libssl-dev gdb curl | ||
|
|
||
| - name: Read Config | ||
| shell: ${{ env.shell }} | ||
| run: cat .github/config.env >> $GITHUB_ENV | ||
|
|
||
| - name: Setup JDK | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: ${{ env.JAVA_VERSION }} | ||
| distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
|
|
||
| - name: Install Boost | ||
| shell: ${{ env.shell }} | ||
| run: | | ||
| sudo ./scripts/install-boost.sh ${{ inputs.BOOST_VERSION }} | ||
|
|
||
| - name: Install Thrift | ||
| shell: ${{ env.shell }} | ||
| run: | | ||
| sudo ./scripts/install-thrift.sh ${{ inputs.THRIFT_VERSION }} | ||
|
|
||
| - name: Configure Resources | ||
| if: ${{ inputs.run_tests }} | ||
| shell: ${{ env.shell }} | ||
| run: | | ||
| ulimit -c unlimited | ||
|
|
||
| sudo sh -c "echo 'core' > /proc/sys/kernel/core_pattern" | ||
| sudo sh -c "echo '1' > /proc/sys/kernel/core_uses_pid" | ||
|
|
||
| - uses: ./.github/actions/build-test/unix | ||
| with: | ||
| GH_TOKEN: ${{ inputs.GH_TOKEN }} | ||
| BOOST_VERSION: ${{ inputs.BOOST_VERSION }} | ||
| THRIFT_VERSION: ${{ inputs.THRIFT_VERSION }} | ||
| WARN_AS_ERR: ${{ inputs.WARN_AS_ERR }} | ||
| BUILD_TYPE: ${{ inputs.BUILD_TYPE }} | ||
| SHARED_LIBS_TOGGLE: ${{ inputs.SHARED_LIBS_TOGGLE }} | ||
| OPENSSL_TOGGLE: ${{ inputs.OPENSSL_TOGGLE }} | ||
| RUN_TESTS: ${{ inputs.RUN_TESTS }} | ||
| HAZELCAST_ENTERPRISE_KEY: ${{ inputs.HAZELCAST_ENTERPRISE_KEY }} | ||
| AWS_ACCESS_KEY_ID: ${{ inputs.AWS_ACCESS_KEY_ID }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ inputs.AWS_SECRET_ACCESS_KEY }} | ||
| HZ_TEST_AWS_INSTANCE_PRIVATE_IP: ${{ inputs.HZ_TEST_AWS_INSTANCE_PRIVATE_IP }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| name: Build & Test - Unix | ||
|
|
||
| inputs: | ||
| GH_TOKEN: | ||
| required: true | ||
| BOOST_VERSION: | ||
| required: true | ||
| THRIFT_VERSION: | ||
| required: true | ||
| WARN_AS_ERR: | ||
| required: true | ||
| BUILD_TYPE: | ||
| required: true | ||
| SHARED_LIBS_TOGGLE: | ||
| required: true | ||
| OPENSSL_TOGGLE: | ||
| required: true | ||
| RUN_TESTS: | ||
| required: true | ||
| HAZELCAST_ENTERPRISE_KEY: | ||
| required: true | ||
| AWS_ACCESS_KEY_ID: | ||
| required: true | ||
| AWS_SECRET_ACCESS_KEY: | ||
| required: true | ||
| HZ_TEST_AWS_INSTANCE_PRIVATE_IP: | ||
| required: true | ||
|
|
||
| env: | ||
| # Not possible to set this as a default | ||
| # https://github.com/orgs/community/discussions/46670 | ||
| shell: bash | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Download hazelcast-enterprise-tests.jar | ||
| shell: ${{ env.shell }} | ||
| run: | | ||
| curl -H "Authorization: token ${{ inputs.GH_TOKEN }}" https://raw.githubusercontent.com/hazelcast/private-test-artifacts/data/certs.jar > hazelcast-enterprise-${{ env.HAZELCAST_VERSION }}-tests.jar | ||
|
|
||
| - name: Build & Install | ||
| env: | ||
| BUILD_DIR: build | ||
| INSTALL: ON | ||
| WARN_AS_ERR: ${{ inputs.WARN_AS_ERR }} | ||
| shell: ${{ env.shell }} | ||
| run: | | ||
| ./scripts/build-unix.sh \ | ||
| -DCMAKE_BUILD_TYPE=${{ inputs.BUILD_TYPE }} \ | ||
| -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/destination \ | ||
| -DBUILD_SHARED_LIBS=${{ inputs.SHARED_LIBS_TOGGLE }} \ | ||
| -DWITH_OPENSSL=${{ inputs.OPENSSL_TOGGLE }} \ | ||
| -DBUILD_TESTS=ON \ | ||
| -DBUILD_EXAMPLES=OFF | ||
|
|
||
| - name: Test | ||
nishaatr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| if: ${{ inputs.run_tests }} | ||
| env: | ||
| BUILD_DIR: build | ||
| HAZELCAST_ENTERPRISE_KEY: ${{ inputs.HAZELCAST_ENTERPRISE_KEY }} | ||
| AWS_ACCESS_KEY_ID: ${{ inputs.AWS_ACCESS_KEY_ID }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ inputs.AWS_SECRET_ACCESS_KEY }} | ||
| HZ_TEST_AWS_INSTANCE_PRIVATE_IP: ${{ inputs.HZ_TEST_AWS_INSTANCE_PRIVATE_IP }} | ||
| shell: ${{ env.shell }} | ||
| run: | | ||
| ./scripts/test-unix.sh | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.