From 216be33c1728ae6b11397d5e2c8d371bc51f6a50 Mon Sep 17 00:00:00 2001 From: Vijai Kumar S Date: Tue, 11 Jun 2024 09:19:23 +0530 Subject: [PATCH] Include a additional entry to build.yml to pack source code + submodules (#372) * Include an additional artifact that packs the code with submodules * exclude unnecessary stuff * avoid recursion * avoid zip.zip --- .github/workflows/build.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4b0c6d77b..0d8cd36cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -506,10 +506,29 @@ jobs: cmake --build . ./Example_ExtractInfo ../../../Examples/Files/Helix.3mf + deploy-source-code-with-submodules: + runs-on: ubuntu-20.04 + needs: [ set-lib3mf-version, assemble-sdk ] + env: + LIB3MF_VERSION: ${{ needs.set-lib3mf-version.outputs.lib3mf-version }} + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - run: | + mkdir -p lib3mf-${{ env.LIB3MF_VERSION }}-source-with-submodules + rsync -av --progress . ./lib3mf-${{ env.LIB3MF_VERSION }}-source-with-submodules --exclude .git --exclude .gitignore --exclude .github --exclude .gitmodules --exclude *.yml --exclude lib3mf-${{ env.LIB3MF_VERSION }}-source-with-submodules + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: lib3mf-${{ env.LIB3MF_VERSION }}-source-with-submodules + path: lib3mf-${{ env.LIB3MF_VERSION }}-source-with-submodules + + set-integration-tests-status: runs-on: ubuntu-20.04 - needs: [ deploy-linux, deploy-windows, deploy-macos ] + needs: [ deploy-linux, deploy-windows, deploy-macos, deploy-source-code-with-submodules ] outputs: run_integration_tests: ${{ steps.set-status.outputs.run_integration_tests }} steps: