File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+
8+ jobs :
9+ publish :
10+ name : Publish for ${{ matrix.os }}
11+ runs-on : ${{ matrix.os }}
12+ strategy :
13+ matrix :
14+ name : [
15+ windows,
16+ macos,
17+ linux
18+ ]
19+
20+ include :
21+ - name : linux
22+ os : ubuntu-latest
23+ artifact_name : bamf
24+ asset_name : bamf_linux_amd64
25+ - name : windows
26+ os : windows-latest
27+ artifact_name : bamf.exe
28+ asset_name : bamf_windows_amd64
29+ - name : macos
30+ os : macos-latest
31+ artifact_name : bamf
32+ asset_name : bamf_macos_amd64
33+
34+ steps :
35+ - uses : actions/checkout@v1
36+
37+ - uses : actions-rs/toolchain@v1
38+ with :
39+ profile : minimal
40+ toolchain : stable
41+
42+ - name : Build
43+ run : cargo build --release --locked
44+
45+ - name : Upload binaries to release
46+ uses : svenstaro/upload-release-action@v1-release
47+ with :
48+ repo_token : ${{ secrets.GITHUB_TOKEN }}
49+ file : target/release/${{ matrix.artifact_name }}
50+ asset_name : ${{ matrix.asset_name }}
51+ tag : ${{ github.ref }}
You can’t perform that action at this time.
0 commit comments