-
Notifications
You must be signed in to change notification settings - Fork 5
85 lines (78 loc) · 2.61 KB
/
release.yml
File metadata and controls
85 lines (78 loc) · 2.61 KB
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
name: Release binaries
on:
release:
types: [created]
env:
CARGO_TERM_COLOR: always
jobs:
build_ubuntu_x86-64:
name: Build artifacts for ubuntu-latest (x86-64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build artifacts
run: cargo build --release --workspace --all-features --verbose
- uses: actions/upload-artifact@v2
with:
name: library-ubuntu
path: target/release/*.so
build_windows_x86-64:
name: Build artifacts for windows-latest (x86-64)
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Build artifacts
run: cargo build --release --workspace --all-features --verbose
- uses: actions/upload-artifact@v2
with:
name: library-windows
path: target/release/*.dll
build_macos_x86-64:
name: Build artifacts for macos-latest (x86-64)
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build artifacts
run: cargo build --release --workspace --all-features --verbose
- uses: actions/upload-artifact@v2
with:
name: library-macos
path: target/release/*.dylib
publish_artifacts:
name: Publish artifacts
runs-on: ubuntu-latest
needs: [build_ubuntu_x86-64, build_windows_x86-64, build_macos_x86-64]
steps:
- uses: actions/download-artifact@v2
with:
name: library-ubuntu
- name: Create archive for linux x86-64
run: zip memflow_reclass_plugin_linux_x86-64.zip *.so
- name: Upload ubuntu artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'memflow_reclass_plugin_linux_x86-64.zip'
- uses: actions/download-artifact@v2
with:
name: library-windows
- name: Create archive for windows x86-64
run: zip memflow_reclass_plugin_windows_x86-64.zip *.dll
- name: Upload windows artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'memflow_reclass_plugin_windows_x86-64.zip'
- uses: actions/download-artifact@v2
with:
name: library-macos
- name: Create archive for macos x86-64
run: zip memflow_reclass_plugin_macos_x86-64.zip *.dylib
- name: Upload macos artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'memflow_reclass_plugin_macos_x86-64.zip'