File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,58 @@ permissions:
44 contents : write
55
66on :
7+ pull_request :
78 push :
89 tags :
910 - " *.*.*"
1011
1112jobs :
1213 publish :
14+ name : " Publish for ${{ matrix.os }}"
15+ runs-on : " ${{ matrix.os }}"
16+ strategy :
17+ matrix :
18+ include :
19+ - name : linux-x86
20+ os : ubuntu-latest
21+ artifact_name : target/x86_64-unknown-linux-musl/release/debug-tui
22+ asset_name : debug-tui-linux
23+ target : " x86_64-unknown-linux-musl"
24+ - name : mac-aarch64
25+ os : macos-14
26+ target : " aarch64-apple-darwin"
27+ artifact_name : target/x86_64-unknown-linux-musl/release/debug-tui
28+ asset_name : debug-tui-linux
29+
30+ steps :
31+ - uses : actions/checkout@v3
32+ - name : Install stable toolchain
33+ uses : actions-rs/toolchain@v1
34+ with :
35+ profile : minimal
36+ toolchain : stable
37+ override : true
38+ target : ${{ matrix.target }}
39+
40+ - name : Install MUSL
41+ if : matrix.target == 'x86_64-unknown-linux-musl'
42+ run : sudo apt install musl-tools
43+
44+ - name : Build
45+ uses : actions-rs/cargo@v1
46+ with :
47+ command : build
48+ args : --release --target ${{ matrix.target }}
49+
50+ - name : Rename
51+ run : mv ${{ matrix.artifact_name }} ${{ matrix.asset_name }}
52+
53+ # - name: Release
54+ # uses: softprops/action-gh-release@v1
55+ # with:
56+ # files: ${{ matrix.asset_name }}
57+
58+ publish-mac-windows :
1359 name : " Publish for ${{ matrix.os }}"
1460 runs-on : " ${{ matrix.os }}"
1561 strategy :
You can’t perform that action at this time.
0 commit comments