6
6
- ' *'
7
7
8
8
jobs :
9
- release :
9
+ unix- release :
10
10
name : ${{ matrix.target }}
11
11
runs-on : ${{ matrix.os }}
12
12
strategy :
18
18
- os : ubuntu-latest
19
19
target : x86_64-unknown-linux-musl
20
20
21
- - os : windows-latest
22
- target : x86_64-pc-windows-msvc
23
-
24
21
- os : macos-latest
25
22
target : x86_64-apple-darwin
26
23
44
41
run : cargo build --release --locked
45
42
46
43
- name : Strip binary
47
- if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
48
44
run : strip target/release/cleora
49
45
50
46
- name : Upload binaries to release
53
49
repo_token : ${{ secrets.GITHUB_TOKEN }}
54
50
file : target/release/cleora
55
51
asset_name : cleora-${{ steps.version.outputs.VERSION }}-${{ matrix.target }}
52
+ tag : ${{ github.ref }}
53
+
54
+ windows-release :
55
+ name : ${{ matrix.target }}
56
+ runs-on : ${{ matrix.os }}
57
+ strategy :
58
+ matrix :
59
+ include :
60
+ - os : windows-latest
61
+ target : x86_64-pc-windows-msvc
62
+
63
+ steps :
64
+ - name : Checkout repository
65
+ uses : actions/checkout@v2
66
+
67
+ - name : Set the version
68
+ id : version
69
+ run : |
70
+ $TAG=${env:GITHUB_REF} -replace 'refs/tags/', ''
71
+ echo "::set-output name=VERSION::$TAG"
72
+
73
+ - name : Install Rust
74
+ uses : actions-rs/toolchain@v1
75
+ with :
76
+ toolchain : stable
77
+ profile : minimal
78
+ override : true
79
+ target : ${{ matrix.target }}
80
+
81
+ - name : Build
82
+ run : cargo build --release --locked
83
+
84
+ - name : Upload binaries to release
85
+ uses : svenstaro/upload-release-action@v1-release
86
+ with :
87
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
88
+ file : target/release/cleora.exe
89
+ asset_name : cleora-${{ steps.version.outputs.VERSION }}-${{ matrix.target }}
56
90
tag : ${{ github.ref }}
0 commit comments