-
Notifications
You must be signed in to change notification settings - Fork 3
Adding openssl connector build testing #56
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
sumit-sen-dc
merged 3 commits into
main
from
DTM-7743-create-github-action-for-open-ssl-connector-build-testing
Mar 24, 2026
+121
−0
Merged
Changes from all commits
Commits
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,121 @@ | ||
| name: "Build_OpenSSLConnector" | ||
| on: | ||
| workflow_dispatch: {} | ||
|
|
||
| schedule: | ||
| - cron: '30 5 * * 1,3,5' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build-openssl-connector: | ||
| runs-on: ubuntu-22.04 | ||
|
|
||
| steps: | ||
| - name: Clone mocn-qa-m-products | ||
| env: | ||
| MY_SECRET_TOKEN: ${{ secrets.MY_SECRET_TOKEN }} | ||
| run: | | ||
| git clone https://${MY_SECRET_TOKEN}@github.com/digicert/mocn-qa-m-products.git ~/mocn-qa-m-products | ||
|
|
||
| - name: Install Dependencies | ||
| run: | | ||
| sudo apt update | ||
| sudo apt install -y cmake wget | ||
| cmake --version | ||
|
|
||
| - name: Checkout repository | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | ||
|
|
||
| - name: Prepare thirdparty directory | ||
| run: | | ||
| mkdir -p thirdparty | ||
|
|
||
| - name: Install OpenSSL 1.1.1i | ||
| run: | | ||
| wget https://github.com/openssl/openssl/releases/download/OpenSSL_1_1_1i/openssl-1.1.1i.tar.gz | ||
| tar -xzf openssl-1.1.1i.tar.gz -C thirdparty/ | ||
|
|
||
| - name: Install OpenSSL 3.0.7 | ||
| run: | | ||
| wget https://github.com/openssl/openssl/releases/download/openssl-3.0.7/openssl-3.0.7.tar.gz | ||
| tar -xzf openssl-3.0.7.tar.gz -C thirdparty/ | ||
|
|
||
| - name: Install OpenSSL 3.0.12 | ||
| run: | | ||
| wget https://github.com/openssl/openssl/releases/download/openssl-3.0.12/openssl-3.0.12.tar.gz | ||
Sushmitha-MN marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| tar -xzf openssl-3.0.12.tar.gz -C thirdparty/ | ||
|
|
||
| - name: Copy Build script | ||
| run: | | ||
| cp ~/mocn-qa-m-products/openssl_shim_test/Opensource_OSSL_BUILD_ALL.sh . | ||
Sushmitha-MN marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # ---------------- OpenSSL Connector BUILDS ---------------- | ||
|
|
||
| - name: CMAKE Build with NanoCAP | ||
| id: ossl_1 | ||
| continue-on-error: true | ||
| run: | | ||
| ./Opensource_OSSL_BUILD_ALL.sh 2 | ||
|
|
||
| - name: Remove and Prepare thirdparty directory for TAP Local | ||
| run: | | ||
| rm -rf thirdparty | ||
| mkdir -p thirdparty | ||
| tar -xzf openssl-1.1.1i.tar.gz -C thirdparty/ | ||
| tar -xzf openssl-3.0.7.tar.gz -C thirdparty/ | ||
| tar -xzf openssl-3.0.12.tar.gz -C thirdparty/ | ||
|
|
||
| - name: CMAKE Build with NanoCAP and NanoTAP Local | ||
| id: ossl_2 | ||
| continue-on-error: true | ||
| run: | | ||
| ./Opensource_OSSL_BUILD_ALL.sh 3 | ||
|
|
||
| - name: Remove and Prepare thirdparty directory for TAP Remote | ||
| run: | | ||
| rm -rf thirdparty | ||
| mkdir -p thirdparty | ||
| tar -xzf openssl-1.1.1i.tar.gz -C thirdparty/ | ||
| tar -xzf openssl-3.0.7.tar.gz -C thirdparty/ | ||
| tar -xzf openssl-3.0.12.tar.gz -C thirdparty/ | ||
|
|
||
| - name: CMAKE Build with NanoCAP and NanoTAP Remote | ||
| id: ossl_3 | ||
| continue-on-error: true | ||
| run: | | ||
| ./Opensource_OSSL_BUILD_ALL.sh 4 | ||
|
|
||
|
|
||
| # ---------------- FINAL FAILURE CHECK ---------------- | ||
|
|
||
| - name: Fail job if any build failed | ||
| if: always() | ||
| run: | | ||
| FAILED=0 | ||
|
|
||
| if [[ "${{ steps.ossl_1.outcome }}" == "failure" ]]; then | ||
| echo "❌ CMAKE Build with NanoCAP FAILED" | ||
| FAILED=1 | ||
| fi | ||
| if [[ "${{ steps.ossl_2.outcome }}" == "failure" ]]; then | ||
| echo "❌ CMAKE Build with NanoCAP and NanoTAP Local FAILED" | ||
| FAILED=1 | ||
| fi | ||
| if [[ "${{ steps.ossl_3.outcome }}" == "failure" ]]; then | ||
| echo "❌ CMAKE Build with NanoCAP and NanoTAP Remote FAILED" | ||
| FAILED=1 | ||
| fi | ||
|
|
||
| if [[ $FAILED -eq 1 ]]; then | ||
| echo "" | ||
| echo "One or more builds failed." | ||
| exit 1 | ||
| else | ||
| echo "" | ||
| echo "All builds passed." | ||
| fi | ||
|
|
||
|
|
||
|
|
||
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.