-
Notifications
You must be signed in to change notification settings - Fork 66
125 lines (104 loc) · 3.42 KB
/
Copy pathrust.yml
File metadata and controls
125 lines (104 loc) · 3.42 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
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
122
123
124
125
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build-macos:
runs-on: macos-11
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cargo build
run: cargo build --verbose --release
shell: bash
- name: Run unitypackage_util help
run: ./target/release/unitypackage_util --help
shell: bash
- name: Adhoc signature
run: |
codesign -s - --options=runtime target/release/unitypackage_util
shell: bash
- name: Prepare artifacts
run: |
export TARGET=unitypackage_util-macos-x86_64
mkdir $TARGET
cp LICENSE $TARGET/unitypackage_util-License.txt
cp target/release/unitypackage_util $TARGET/unitypackage_util-macos-x86_64
7z a -r $TARGET.zip $TARGET
shell: bash
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: unitypackage_util-macos-x86_64.zip
- name: unitypackage_util-macos-x86_64
uses: actions/upload-artifact@v3
with:
name: unitypackage_util-macos-x86_64
path: unitypackage_util-macos-x86_64/*
build-windows:
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cargo build
run: cargo build --verbose --release
shell: bash
- name: Run unitypackage_util help
run: |
./target/release/unitypackage_util.exe --help
shell: bash
- name: Prepare artifacts
run: |
export TARGET=unitypackage_util-windows-x86_64
mkdir $TARGET
cp LICENSE $TARGET/unitypackage_util-License.txt
cp target/release/unitypackage_util.exe $TARGET/unitypackage_util-windows-x86_64.exe
7z a -r $TARGET.zip $TARGET
shell: bash
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
unitypackage_util-windows-x86_64.zip
unitypackage_util-windows-x86_64/unitypackage_util-License.txt
- name: unitypackage_util-windows-x86_64
uses: actions/upload-artifact@v3
with:
name: unitypackage_util-windows-x86_64
path: unitypackage_util-windows-x86_64/*
build-linux:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cargo build
run: cargo build --verbose --release
shell: bash
- name: Run unitypackage_util help
run: ./target/release/unitypackage_util --help
shell: bash
- name: Prepare artifacts
run: |
export TARGET=unitypackage_util-linux-x86_64
mkdir $TARGET
cp LICENSE $TARGET/unitypackage_util-License.txt
cp target/release/unitypackage_util $TARGET/unitypackage_util-linux-x86_64
7z a -r $TARGET.zip $TARGET
shell: bash
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: unitypackage_util-linux-x86_64.zip
- name: unitypackage_util-linux-x86_64
uses: actions/upload-artifact@v3
with:
name: unitypackage_util-linux-x86_64
path: unitypackage_util-linux-x86_64/*