File tree Expand file tree Collapse file tree 1 file changed +34
-29
lines changed
Expand file tree Collapse file tree 1 file changed +34
-29
lines changed Original file line number Diff line number Diff line change 11on : push
22name : Deploy
33jobs :
4- linux :
5- name : Linux 64-bits
6- runs-on : ubuntu-latest
4+ build :
5+ name : Build
6+ strategy :
7+ matrix :
8+ os : [ubuntu-latest, macos-latest, windows-latest]
9+ runs-on : ${{ matrix.os }}
710 steps :
8- - uses : actions/checkout@v2
9- - uses : actions-rs/toolchain@v1
11+ - name : Checkout
12+ uses : actions/checkout@v2
13+ - name : Set Rust toolchain
14+ uses : actions-rs/toolchain@v1
1015 with :
1116 toolchain : stable
12- - uses : actions-rs/cargo@v1
17+ - name : Build
18+ uses : actions-rs/cargo@v1
1319 with :
1420 command : build
1521 args : --release
16- mac :
17- name : macOS
18- runs-on : mac-latest
22+ release :
23+ name : Make release
24+ needs : [linux, mac, windows]
1925 steps :
20- - uses : actions/checkout@v2
21- - uses : actions-rs/toolchain@v1
22- with :
23- toolchain : stable
24- - uses : actions-rs/cargo@v1
25- with :
26- command : build
27- args : --release
28- windows :
29- name : Windows 64-bits
30- runs-on : windows-latest
31- steps :
32- - uses : actions/checkout@v2
33- - uses : actions-rs/toolchain@v1
34- with :
35- toolchain : stable
36- - uses : actions-rs/cargo@v1
37- with :
38- command : build
39- args : --release
26+ - name : Prepare files
27+ if : false
28+ # if: runner.os != "Windows"
29+ run : |
30+ mkdir dist
31+ cd dist
32+ cp ../target/release/rust-deploy-test .
33+ cp -r ../assets .
34+ - name : Prepare files
35+ if : false
36+ # if: runner.os == "Windows"
37+ run : |
38+ mkdir dist
39+ cd dist
40+ copy ..\target\release\rust-deploy-test.exe .
41+ copy ..\assets .
42+ - name : Release
43+ if : false
44+ uses : softprops/action-gh-release@v1
You can’t perform that action at this time.
0 commit comments