Skip to content

Commit 955190c

Browse files
authored
Update Actions w/ new bin naming (#29)
* Refactor macOS binary packaging in release workflow Updated packaging process for macOS binaries to include rpath and additional libraries. Signed-off-by: Lorenzo Mangani <lorenzo.mangani@gmail.com> * Add ccache step to release workflow Signed-off-by: Lorenzo Mangani <lorenzo.mangani@gmail.com> * Update smoke test commands in CI build workflow Signed-off-by: Lorenzo Mangani <lorenzo.mangani@gmail.com> * Update release workflow to include new bin naming Signed-off-by: Lorenzo Mangani <lorenzo.mangani@gmail.com> * Fix file pattern in release packaging step Signed-off-by: Lorenzo Mangani <lorenzo.mangani@gmail.com> --------- Signed-off-by: Lorenzo Mangani <lorenzo.mangani@gmail.com>
1 parent b6593f4 commit 955190c

2 files changed

Lines changed: 20 additions & 9 deletions

File tree

.github/workflows/ci-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
3838
- name: Smoke test
3939
run: |
40-
./build/ace-qwen3 --help 2>&1 | head -5
41-
./build/dit-vae --help 2>&1 | head -5
40+
./build/ace-lm --help 2>&1 | head -5
41+
./build/ace-synth --help 2>&1 | head -5
4242
./build/quantize --help 2>&1 | head -3
4343
4444
lint:

.github/workflows/release.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ jobs:
4242
sudo apt-get update -qq
4343
sudo apt-get install -y -qq cmake build-essential ${{ matrix.apt_extra || '' }}
4444
45+
- name: ccache
46+
if: runner.os != 'Windows'
47+
uses: hendrikmuhs/ccache-action@v1.2
48+
with:
49+
create-symlink: true
50+
key: ${{ github.job }}-${{ matrix.os }}
51+
4552
- name: Install CUDA toolkit (Linux)
4653
uses: Jimver/cuda-toolkit@v0.2.30
4754
if: matrix.install_cuda == true
@@ -88,8 +95,8 @@ jobs:
8895
BIN="build"
8996
EXT=""
9097
fi
91-
"$BIN/ace-qwen3$EXT" 2>&1 | head -5
92-
"$BIN/dit-vae$EXT" 2>&1 | head -5
98+
"$BIN/ace-lm$EXT" 2>&1 | head -5
99+
"$BIN/ace-synth$EXT" 2>&1 | head -5
93100
"$BIN/ace-understand$EXT" 2>&1 | head -5
94101
"$BIN/neural-codec$EXT" 2>&1 | head -5
95102
"$BIN/quantize$EXT" 2>&1 | head -3
@@ -109,24 +116,28 @@ jobs:
109116
if: runner.os == 'Linux'
110117
run: |
111118
mkdir -p dist
112-
cp build/ace-qwen3 build/dit-vae build/ace-understand \
119+
cp build/ace-* \
113120
build/quantize build/neural-codec build/mp3-codec build/*.so dist/
114121
tar -C dist -czf "acestep-${{ matrix.name }}.tar.gz" .
115122
116123
- name: Package binaries (macOS)
117124
if: runner.os == 'macOS'
118125
run: |
119126
mkdir -p dist
120-
cp build/ace-qwen3 build/dit-vae build/ace-understand \
121-
build/quantize build/neural-codec build/mp3-codec dist/
127+
cd build
128+
for bin in ace-* quantize neural-codec mp3-codec; do
129+
install_name_tool -add_rpath @executable_path "$bin"
130+
done
131+
cp -P ace-* quantize neural-codec mp3-codec libacestep*.a libggml*.dylib ../dist/
132+
cd ..
122133
tar -C dist -czf "acestep-${{ matrix.name }}.tar.gz" .
123-
134+
124135
- name: Package binaries (Windows)
125136
if: runner.os == 'Windows'
126137
shell: pwsh
127138
run: |
128139
New-Item -ItemType Directory -Path dist | Out-Null
129-
$bins = @('ace-qwen3','dit-vae','ace-understand','quantize','neural-codec','mp3-codec')
140+
$bins = @('ace-lm','ace-synth','ace-understand','quantize','neural-codec','mp3-codec')
130141
foreach ($b in $bins) {
131142
Copy-Item "build\Release\$b.exe" dist\
132143
}

0 commit comments

Comments
 (0)