From b29d64f8895091bbc27d259dd7bcac426932e802 Mon Sep 17 00:00:00 2001 From: Sushmitha-MN Date: Mon, 23 Mar 2026 15:04:23 +0530 Subject: [PATCH 1/3] Adding openssl connector build testing --- .github/workflows/build_openssl_connector.yml | 121 ++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 .github/workflows/build_openssl_connector.yml diff --git a/.github/workflows/build_openssl_connector.yml b/.github/workflows/build_openssl_connector.yml new file mode 100644 index 0000000..3dacbb0 --- /dev/null +++ b/.github/workflows/build_openssl_connector.yml @@ -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 + 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 . + + # ---------------- 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 + + + From 8d8b02ad0a88e1851c3b7347c6aed4f6b3b497c2 Mon Sep 17 00:00:00 2001 From: Sushmitha-MN Date: Mon, 23 Mar 2026 15:09:12 +0530 Subject: [PATCH 2/3] Update .github/workflows/build_openssl_connector.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/build_openssl_connector.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_openssl_connector.yml b/.github/workflows/build_openssl_connector.yml index 3dacbb0..85255b7 100644 --- a/.github/workflows/build_openssl_connector.yml +++ b/.github/workflows/build_openssl_connector.yml @@ -9,7 +9,7 @@ permissions: contents: read jobs: - build-openssl_connector: + build-openssl-connector: runs-on: ubuntu-22.04 steps: From cb499980186d89d541a47a034c59a1e50cd03aa5 Mon Sep 17 00:00:00 2001 From: Sushmitha-MN Date: Mon, 23 Mar 2026 15:15:54 +0530 Subject: [PATCH 3/3] Removing white space --- .github/workflows/build_openssl_connector.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_openssl_connector.yml b/.github/workflows/build_openssl_connector.yml index 85255b7..98cc74c 100644 --- a/.github/workflows/build_openssl_connector.yml +++ b/.github/workflows/build_openssl_connector.yml @@ -3,7 +3,7 @@ on: workflow_dispatch: {} schedule: - - cron: '30 5 * * 1,3,5' + - cron: '30 5 * * 1,3,5' permissions: contents: read