Skip to content

Commit

Permalink
Include a additional entry to build.yml to pack source code + submodu…
Browse files Browse the repository at this point in the history
…les (#372)

* Include an additional artifact that packs the code with submodules

* exclude unnecessary stuff

* avoid recursion

* avoid zip.zip
  • Loading branch information
vijaiaeroastro authored Jun 11, 2024
1 parent 0fa4ecf commit 216be33
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 216be33

Please sign in to comment.