File tree 1 file changed +38
-3
lines changed
1 file changed +38
-3
lines changed Original file line number Diff line number Diff line change 6
6
- " v*.*.*"
7
7
8
8
jobs :
9
- build :
10
- runs-on : ubuntu-latest
9
+ prepare :
10
+ strategy :
11
+ matrix :
12
+ os : [ubuntu-latest, macos-11, windows-2022]
13
+ runs-on : ${{ matrix.os }}
11
14
steps :
12
15
- uses : actions/checkout@v2
13
16
- uses : actions-rs/toolchain@v1
28
31
with :
29
32
command : build
30
33
args : --release
34
+ - uses : actions/upload-artifact@v3
35
+ with :
36
+ name : release-binary-${{ runner.os }}
37
+ path : target/release/reddownload*
38
+ release :
39
+ needs : [prepare]
40
+ runs-on : ubuntu-latest
41
+ steps :
42
+ - name : Download Linux artifact
43
+ uses : actions/download-artifact@v3
44
+ with :
45
+ name : release-binary-Linux
46
+ path : linux
47
+ - name : Download macOS artifact
48
+ uses : actions/download-artifact@v3
49
+ with :
50
+ name : release-binary-macOS
51
+ path : macos
52
+ - name : Download Windows artifact
53
+ uses : actions/download-artifact@v3
54
+ with :
55
+ name : release-binary-Windows
56
+ path : windows
57
+ - name : Compress files
58
+ run : |
59
+ tar -czf reddownload-linux.tar.gz linux/reddownload
60
+ tar -czf reddownload-macos.tar.gz macos/reddownload
61
+ zip -9 reddownload-windows.zip windows/reddownload.exe
31
62
- uses : softprops/action-gh-release@v1
32
63
with :
33
- files : target/release/reddownload
64
+ files : |
65
+ reddownload-linux.tar.gz
66
+ reddownload-macos.tar.gz
67
+ reddownload-windows.zip
68
+
You can’t perform that action at this time.
0 commit comments