From d043901b23bf41df7bd156ce1a4f620a3ccaada7 Mon Sep 17 00:00:00 2001 From: AdityaKasar Date: Fri, 11 Oct 2024 16:00:45 +0530 Subject: [PATCH] fixup! feat(core): CI pipeline to build and test CPP SDK --- .github/workflows/cxx-build.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cxx-build.yml b/.github/workflows/cxx-build.yml index 8434e1405..ec3181d5c 100644 --- a/.github/workflows/cxx-build.yml +++ b/.github/workflows/cxx-build.yml @@ -51,6 +51,12 @@ jobs: env: NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} # <-- allow npm publish for each workspace run: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc' + + - name: Cache npm dependencies + uses: actions/cache@v3 + with: + path: ~/.npm + key: deps-node-modules-${{ hashFiles('package-lock.json') }} - name: Install dependencies run: npm ci @@ -98,9 +104,9 @@ jobs: container: image: kevinshahfws/node-c:3.0 steps: - # # Checkout/install project - # - name: Checkout - # uses: actions/checkout@v2 + # Checkout/install project + - name: Checkout + uses: actions/checkout@v2 - name: Download Core SDK uses: actions/download-artifact@v3 @@ -158,7 +164,7 @@ jobs: .github/workflows/utils.sh buildManageCPPSDK dicovery_sdk: - name: Build Dicovery SDK + name: Build Discovery SDK needs: [thunder, openrpc] runs-on: ubuntu-latest container: @@ -167,7 +173,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Download Dicovery SDK + - name: Download Discovery SDK uses: actions/download-artifact@v3 with: name: discovery-sdk @@ -184,9 +190,9 @@ jobs: cd /__w/discovery-sdk/ npm install - - name: Build CXX Dicovery SDK + - name: Build CXX Discovery SDK run: | - .github/workflows/utils.sh buildDicoveryCPPSDK + .github/workflows/utils.sh buildDiscoveryCPPSDK #==============================================================