Skip to content

Commit 4ccc2d8

Browse files
committed
various cli updates
Signed-off-by: Yujong Lee <yujonglee.dev@gmail.com>
1 parent af44bc0 commit 4ccc2d8

40 files changed

+1514
-768
lines changed

.github/workflows/cli_cd.yaml

Lines changed: 9 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -42,48 +42,26 @@ jobs:
4242
4343
build:
4444
needs: compute-version
45-
strategy:
46-
fail-fast: true
47-
matrix:
48-
include:
49-
- target: aarch64-apple-darwin
50-
runner: depot-macos-15
51-
platform: macos
52-
- target: x86_64-unknown-linux-gnu
53-
runner: depot-ubuntu-24.04-8
54-
platform: linux-x86_64
55-
- target: aarch64-unknown-linux-gnu
56-
runner: depot-ubuntu-24.04-arm-8
57-
platform: linux-aarch64
58-
runs-on: ${{ matrix.runner }}
45+
runs-on: depot-macos-15
5946
defaults:
6047
run:
6148
shell: bash
6249
steps:
6350
- uses: actions/checkout@v4
64-
- if: runner.os == 'Linux'
65-
run: |
66-
sudo apt-get update
67-
sudo apt-get install -y libasound2-dev libpulse-dev pkg-config
6851
- uses: ./.github/actions/rust_install
6952
with:
70-
platform: ${{ matrix.platform }}
71-
- if: matrix.platform == 'macos'
72-
run: echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV
73-
- run: cargo build --release -p cli --target ${{ matrix.target }}
53+
platform: macos
54+
- run: echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV
55+
- run: cargo build --release -p cli --target aarch64-apple-darwin
7456
- run: |
75-
BIN="target/${{ matrix.target }}/release/char"
76-
if [[ "${{ runner.os }}" == "macOS" ]]; then
77-
strip -x "$BIN"
78-
else
79-
strip "$BIN"
80-
fi
81-
ARCHIVE="char-${{ needs.compute-version.outputs.version }}-${{ matrix.target }}.tar.xz"
82-
tar -cJf "$ARCHIVE" -C "target/${{ matrix.target }}/release" char
57+
BIN="target/aarch64-apple-darwin/release/char"
58+
strip -x "$BIN"
59+
ARCHIVE="char-${{ needs.compute-version.outputs.version }}-aarch64-apple-darwin.tar.xz"
60+
tar -cJf "$ARCHIVE" -C "target/aarch64-apple-darwin/release" char
8361
echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV
8462
- uses: actions/upload-artifact@v4
8563
with:
86-
name: char-${{ matrix.target }}
64+
name: char-aarch64-apple-darwin
8765
path: ${{ env.ARCHIVE }}
8866
retention-days: 3
8967

@@ -116,8 +94,6 @@ jobs:
11694
with:
11795
files: |
11896
artifacts/char-${{ needs.compute-version.outputs.version }}-aarch64-apple-darwin.tar.xz
119-
artifacts/char-${{ needs.compute-version.outputs.version }}-x86_64-unknown-linux-gnu.tar.xz
120-
artifacts/char-${{ needs.compute-version.outputs.version }}-aarch64-unknown-linux-gnu.tar.xz
12197
- id: artifacts
12298
run: |
12399
TARBALLS=$(ls artifacts/*.tar.xz | tr '\n' ',')

0 commit comments

Comments
 (0)