This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
121 lines (104 loc) · 3.46 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: Create CuraPackage
run-name: ${{ inputs.plugin_conan_version }} by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
plugin_conan_version:
description: 'Plugin Conan Version'
default: 'curaengine_plugin_gradual_flow/latest@ultimaker/testing'
required: true
type: string
conan_args:
description: 'Conan args: eq.: --require-override'
default: ''
required: false
type: string
jobs:
windows-installer:
uses: ./.github/workflows/windows.yml
with:
plugin_conan_version: ${{ inputs.plugin_conan_version }}
conan_args: ${{ inputs.conan_args }}
architecture: X64
operating_system: windows-2022
secrets: inherit
linux-modern-installer:
uses: ./.github/workflows/linux.yml
with:
plugin_conan_version: ${{ inputs.plugin_conan_version }}
conan_args: ${{ inputs.conan_args }}
architecture: X64
operating_system: ubuntu-22.04
secrets: inherit
macos-installer:
uses: ./.github/workflows/macos.yml
with:
plugin_conan_version: ${{ inputs.plugin_conan_version }}
conan_args: ${{ inputs.conan_args }}
architecture: X64
operating_system: macos-11.0
secrets: inherit
macos-arm-installer:
uses: ./.github/workflows/macos.yml
with:
plugin_conan_version: ${{ inputs.plugin_conan_version }}
conan_args: ${{ inputs.conan_args }}
architecture: ARM64
operating_system: self-hosted
secrets: inherit
create-curapackages:
runs-on: "ubuntu-latest"
needs: [ windows-installer, linux-modern-installer, macos-installer, macos-arm-installer ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download the run info
uses: actions/download-artifact@v2
with:
name: linux-run-info
- name: Set the run info as environment variables
run: |
. run_info.sh
- name: Download the Cura plugin
uses: actions/download-artifact@v2
with:
name: linux-cura-plugin
path: cura-plugin
- name: Download linux modern binary artifacts
uses: actions/download-artifact@v2
with:
name: Linux-X64
path: cura-plugin/CuraEngineGradualFlow/x86_64/Linux
- name: Download mac x64 binary artifacts
uses: actions/download-artifact@v2
with:
name: macOS-X64
path: cura-plugin/CuraEngineGradualFlow/x86_64/Darwin
- name: Download mac arm binaries artifacts
uses: actions/download-artifact@v2
with:
name: macOS-ARM64
path: cura-plugin/CuraEngineGradualFlow/arm64/Darwin
- name: Download win X64 binaries artifacts
uses: actions/download-artifact@v2
with:
name: Windows-X64
path: cura-plugin/CuraEngineGradualFlow/x86_64/Windows
- name: Upload the Cura plugin source
uses: actions/upload-artifact@v3
with:
name: cura-plugin
path: |
cura-plugin/CuraEngineGradualFlow/**/*
retention-days: 5
- uses: fieldOfView/cura-plugin-packager-action@main
with:
source_folder: "cura-plugin/CuraEngineGradualFlow"
package_info_path: "cura-plugin/CuraEngineGradualFlow/package.json"
- name: Upload the Cura package
uses: actions/upload-artifact@v3
with:
name: cura-package
path: |
*.curapackage
retention-days: 5