-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (70 loc) · 2.04 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
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