Skip to content

Commit 255d300

Browse files
committed
Try macos
1 parent d7bc7a7 commit 255d300

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/release.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,58 @@ permissions:
44
contents: write
55

66
on:
7+
pull_request:
78
push:
89
tags:
910
- "*.*.*"
1011

1112
jobs:
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:

0 commit comments

Comments
 (0)