File tree Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build releases
2
+ on :
3
+ push :
4
+ tags :
5
+ - v[0-9]+.*
6
+
7
+ env :
8
+ CARGO_TERM_COLOR : always
9
+
10
+ jobs :
11
+ build-cross-linux :
12
+ runs-on : ubuntu-latest
13
+ env :
14
+ RUST_BACKTRACE : full
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Install Rust
18
+ uses : actions-rs/toolchain@v1
19
+ with :
20
+ profile : minimal
21
+ target : x86_64-unknown-linux-musl
22
+ toolchain : stable
23
+ default : true
24
+ override : true
25
+ - name : Build x86_64-unknown-linux-musl
26
+ timeout-minutes : 120
27
+ working-directory : ./windiff_cli
28
+ run : |
29
+ cargo build --release --target x86_64-unknown-linux-musl &&
30
+ mv target/x86_64-unknown-linux-musl/release/windiff_cli target/x86_64-unknown-linux-musl/release/windiff_cli-x86_64-unknown-linux-musl
31
+
32
+ - name : Upload Github Assets
33
+ uses : softprops/action-gh-release@v1
34
+ env :
35
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
+ working-directory : ./windiff_cli
37
+ with :
38
+ files : |
39
+ target/x86_64-unknown-linux-musl/release/windiff_cli-x86_64-unknown-linux-musl
40
+
41
+ build-windows :
42
+ runs-on : windows-latest
43
+ env :
44
+ RUST_BACKTRACE : full
45
+ steps :
46
+ - uses : actions/checkout@v2
47
+ - name : Install Rust
48
+ uses : actions-rs/toolchain@v1
49
+ with :
50
+ profile : minimal
51
+ target : x86_64-pc-windows-msvc
52
+ toolchain : stable
53
+ default : true
54
+ override : true
55
+ - name : Build release
56
+ shell : bash
57
+ working-directory : ./windiff_cli
58
+ run : |
59
+ cargo build --release --target x86_64-pc-windows-msvc &&
60
+ mv target/x86_64-pc-windows-msvc/release/windiff_cli.exe target/x86_64-pc-windows-msvc/release/windiff_cli-x86_64-pc-windows-msvc.exe
61
+
62
+ - name : Upload Github Assets
63
+ uses : softprops/action-gh-release@v1
64
+ env :
65
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66
+ working-directory : ./windiff_cli
67
+ with :
68
+ files : |
69
+ target/x86_64-pc-windows-msvc/release/windiff_cli-x86_64-pc-windows-msvc.exe
You can’t perform that action at this time.
0 commit comments