Skip to content

Commit

Permalink
Also make sure that the packaging tools can be run
Browse files Browse the repository at this point in the history
Contributes to CURA-8415
  • Loading branch information
jellespijker committed Aug 18, 2023
1 parent 82f5878 commit fc159a2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 9 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,27 +242,39 @@ jobs:
f.writelines(f"`{package.key}/{package.version}`\n")
- name: Archive the artifacts (bash)
run: tar -zcf "./${{ steps.filename.outputs.INSTALLER_FILENAME }}.tar.gz" "./dist/"
run: |
tar -zcf "./${{ steps.filename.outputs.INSTALLER_FILENAME }}.tar.gz" "./dist/"
tar -zcf "./${{ steps.filename.outputs.INSTALLER_FILENAME }}-package.tar.gz" "./cura_inst/packaging/"
- name: upload the tarred dist folder
- name: upload the tarred dist and packaging folder
uses: actions/upload-artifact@v3
with:
name: dist
path: |
${{ steps.filename.outputs.INSTALLER_FILENAME }}.tar.gz
${{ steps.filename.outputs.INSTALLER_FILENAME }}-package.tar.gz
retention-days: 5

cura-installer-create-dmg:
needs: [ cura-installer-create ]
runs-on: macos-11
steps:
- name: Setup Python and pip
uses: actions/setup-python@v4
with:
python-version: '3.10.x'
cache: 'pip'
cache-dependency-path: .github/workflows/requirements-conan-package.txt

- name: Download the dist
uses: actions/download-artifact@v3
with:
name: dist

- name: untar the dist folder
run: tar -zxf "./${{ needs.cura-installer-create.outputs.INSTALLER_FILENAME }}.tar.gz"
run: |
tar -zxf "./${{ needs.cura-installer-create.outputs.INSTALLER_FILENAME }}.tar.gz"
tar -zxf "./${{ needs.cura-installer-create.outputs.INSTALLER_FILENAME }}-package.tar.gz"
- name: Remove Macos keychain (Bash)
run: security delete-keychain signing_temp.keychain || true
Expand Down Expand Up @@ -309,7 +321,9 @@ jobs:
name: dist

- name: untar the dist folder
run: tar -zxf "./${{ needs.cura-installer-create.outputs.INSTALLER_FILENAME }}.tar.gz"
run: |
tar -zxf "./${{ needs.cura-installer-create.outputs.INSTALLER_FILENAME }}.tar.gz"
tar -zxf "./${{ needs.cura-installer-create.outputs.INSTALLER_FILENAME }}-package.tar.gz"
- name: Remove Macos keychain (Bash)
run: security delete-keychain signing_temp.keychain || true
Expand Down
30 changes: 25 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,29 +199,40 @@ jobs:
for package in pkg_resources.working_set:
f.writelines(f"`{package.key}/{package.version}`\n")
- name: Archive the artifacts (Powershell)
run: Compress-Archive -Path ".\dist" -DestinationPath ".\${{ steps.filename.outputs.INSTALLER_FILENAME }}.zip"
run: |
Compress-Archive -Path ".\dist" -DestinationPath ".\${{ steps.filename.outputs.INSTALLER_FILENAME }}.zip"
Compress-Archive -Path ".\cura_inst\packaging\" -DestinationPath ".\${{ steps.filename.outputs.INSTALLER_FILENAME }}-packaging.zip"
- name: upload the zipped dist folder
- name: upload the zipped dist and packaging folder
uses: actions/upload-artifact@v3
with:
name: dist
path: |
${{ steps.filename.outputs.INSTALLER_FILENAME }}.zip
${{ steps.filename.outputs.INSTALLER_FILENAME }}-packaging.zip
retention-days: 5

cura-installer-create-exe:
needs: [ cura-installer-create ]
runs-on: ${{ inputs.operating_system }}
steps:
- name: Setup Python and pip
uses: actions/setup-python@v4
with:
python-version: '3.10.x'
cache: 'pip'
cache-dependency-path: .github/workflows/requirements-conan-package.txt

- name: Download the zipped dist
uses: actions/download-artifact@v3
with:
name: dist

- name: Extract the zipped dist
run: Expand-Archive -Path ".\${{ needs.cura-installer-create.outputs.INSTALLER_FILENAME }}.zip" -DestinationPath "."
run: |
Expand-Archive -Path ".\${{ needs.cura-installer-create.outputs.INSTALLER_FILENAME }}.zip" -DestinationPath "."
Expand-Archive -Path ".\${{ needs.cura-installer-create.outputs.INSTALLER_FILENAME }}-packaging.zip" -DestinationPath "."
shell: powershell

- name: Create PFX certificate from BASE64_PFX_CONTENT secret
Expand Down Expand Up @@ -258,13 +269,22 @@ jobs:
needs: [ cura-installer-create ]
runs-on: ${{ inputs.operating_system }}
steps:
- name: Setup Python and pip
uses: actions/setup-python@v4
with:
python-version: '3.10.x'
cache: 'pip'
cache-dependency-path: .github/workflows/requirements-conan-package.txt

- name: Download the dist
uses: actions/download-artifact@v3
with:
name: dist

- name: Extract the zipped dist
run: Expand-Archive -Path ".\${{ needs.cura-installer-create.outputs.INSTALLER_FILENAME }}.zip" -DestinationPath "."
run: |
Expand-Archive -Path ".\${{ needs.cura-installer-create.outputs.INSTALLER_FILENAME }}.zip" -DestinationPath "."
Expand-Archive -Path ".\${{ needs.cura-installer-create.outputs.INSTALLER_FILENAME }}-packaging.zip" -DestinationPath "."
shell: powershell

- name: Create PFX certificate from BASE64_PFX_CONTENT secret
Expand Down

0 comments on commit fc159a2

Please sign in to comment.