Create CuraPackage #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create CuraPackage | |
on: | |
workflow_dispatch: | |
jobs: | |
windows-installer: | |
uses: ./.github/workflows/build.yml | |
with: | |
architecture: X64 | |
operating_system: windows-2022 | |
secrets: inherit | |
linux-modern-installer: | |
uses: ./.github/workflows/build.yml | |
with: | |
architecture: X64 | |
operating_system: ubuntu-22.04 | |
secrets: inherit | |
macos-installer: | |
uses: ./.github/workflows/build.yml | |
with: | |
architecture: X64 | |
operating_system: macos-11.0 | |
secrets: inherit | |
create-curapackages: | |
runs-on: "ubuntu-latest" | |
needs: [ windows-installer, linux-modern-installer, macos-installer ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download linux modern binary artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: Linux-X64 | |
path: valve/x86_64/Linux | |
- name: Download mac x64 binary artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: macOS-X64 | |
path: valve/x86_64/Darwin | |
- name: Download win X64 binaries artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: Windows-X64 | |
path: valve/x86_64/Windows | |
- name: Install Protobuf | |
uses: bufbuild/[email protected] | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
version: '3.x' | |
- name: Update plugin template files | |
run: | | |
cargo run --bin create_plugin_template_files --release | |
- name: Upload the Cura plugin source | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cura-plugin | |
path: | | |
valve/**/* | |
retention-days: 5 | |
- uses: fieldOfView/cura-plugin-packager-action@main | |
with: | |
source_folder: "valve" | |
package_info_path: "valve/package.json" | |
- name: Upload the Cura package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cura-package | |
path: | | |
*.curapackage | |
retention-days: 5 |