@@ -103,6 +103,45 @@ jobs:
103103 name : tui-binary
104104 path : zypi-linux-x86_64
105105
106+ build-tui-macos-arm :
107+ name : Build TUI binary (macOS arm64)
108+ needs : test
109+ runs-on : macos-14
110+ steps :
111+ - uses : actions/checkout@v7
112+
113+ - name : Install Rust toolchain
114+ uses : dtolnay/rust-toolchain@stable
115+
116+ - name : Cache Cargo registry and build
117+ uses : actions/cache@v4
118+ with :
119+ path : |
120+ ~/.cargo/registry
121+ ~/.cargo/git
122+ tui/target
123+ key : tui-release-${{ runner.os }}-arm64-${{ hashFiles('tui/Cargo.lock') }}
124+ restore-keys : tui-release-${{ runner.os }}-arm64-
125+
126+ - name : Install protoc
127+ uses : arduino/setup-protoc@v3
128+ with :
129+ version : " 28.x"
130+
131+ - name : Build zypi (release-dist)
132+ working-directory : tui
133+ run : cargo build --profile release-dist -p pi-pager-bin
134+
135+ - name : Prepare binary artifact
136+ run : |
137+ cp tui/target/release-dist/zypi zypi-macos-arm64
138+ chmod +x zypi-macos-arm64
139+
140+ - uses : actions/upload-artifact@v4
141+ with :
142+ name : tui-binary-macos-arm64
143+ path : zypi-macos-arm64
144+
106145 publish-pypi :
107146 name : Publish to PyPI
108147 needs : build
@@ -122,7 +161,7 @@ jobs:
122161
123162 github-release :
124163 name : GitHub Release
125- needs : [build, build-tui]
164+ needs : [build, build-tui, build-tui-macos-arm ]
126165 runs-on : ubuntu-latest
127166 permissions :
128167 contents : write
@@ -139,6 +178,11 @@ jobs:
139178 name : tui-binary
140179 path : tui-bin/
141180
181+ - uses : actions/download-artifact@v4
182+ with :
183+ name : tui-binary-macos-arm64
184+ path : tui-bin/
185+
142186 - name : Extract version from tag
143187 id : version
144188 run : echo "version=${GITHUB_REF#refs/tags/v}" >> "$GITHUB_OUTPUT"
0 commit comments