@@ -40,10 +40,11 @@ concurrency:
4040env :
4141 R2_BUCKET : rivet-releases
4242 R2_ENDPOINT : https://2a94c6a0ced8d35ea63cddc86c2681e7.r2.cloudflarestorage.com
43- # Platform list kept in sync with packages/*sidecar*/npm/* and the build
44- # matrix below. Also consumed by scripts/publish discovery via SIDECAR_PLATFORMS.
45- # arm64 is deferred until its portability fix is verified end-to-end.
46- SIDECAR_PLATFORMS : " linux-x64-gnu"
43+ # Platform list kept in sync with packages/*sidecar*/npm/*,
44+ # packages/agentos-plugin/npm/*, and the build matrices below. Also consumed
45+ # by scripts/publish discovery via SIDECAR_PLATFORMS.
46+ # Linux arm64 is deferred until its portability fix is verified end-to-end.
47+ SIDECAR_PLATFORMS : " linux-x64-gnu darwin-arm64 darwin-x64"
4748
4849jobs :
4950 # ---------------------------------------------------------------------------
8788 - platform : linux-x64-gnu
8889 runner : ubuntu-22.04
8990 target : x86_64-unknown-linux-gnu
91+ - platform : darwin-arm64
92+ runner : macos-14
93+ target : aarch64-apple-darwin
94+ - platform : darwin-x64
95+ runner : macos-13
96+ target : x86_64-apple-darwin
9097 runs-on : ${{ matrix.runner }}
9198 steps :
9299 - uses : actions/checkout@v4
@@ -154,6 +161,15 @@ jobs:
154161 - platform : linux-x64-gnu
155162 runner : ubuntu-22.04
156163 target : x86_64-unknown-linux-gnu
164+ lib_name : libagentos_actor_plugin.so
165+ - platform : darwin-arm64
166+ runner : macos-14
167+ target : aarch64-apple-darwin
168+ lib_name : libagentos_actor_plugin.dylib
169+ - platform : darwin-x64
170+ runner : macos-13
171+ target : x86_64-apple-darwin
172+ lib_name : libagentos_actor_plugin.dylib
157173 runs-on : ${{ matrix.runner }}
158174 steps :
159175 - uses : actions/checkout@v4
@@ -192,8 +208,8 @@ jobs:
192208 cargo build -p agentos-actor-plugin --target ${{ matrix.target }}
193209 profile="debug"
194210 fi
195- cp "target/${{ matrix.target }}/${profile}/libagentos_actor_plugin.so " \
196- "$out/libagentos_actor_plugin.so "
211+ cp "target/${{ matrix.target }}/${profile}/${{ matrix.lib_name }} " \
212+ "$out/${{ matrix.lib_name }} "
197213 echo "dir=$out" >> "$GITHUB_OUTPUT"
198214 - uses : actions/upload-artifact@v4
199215 with :
@@ -249,7 +265,11 @@ jobs:
249265 run : |
250266 set -euo pipefail
251267 for p in $SIDECAR_PLATFORMS; do
252- lib="artifacts/plugin-${p}/libagentos_actor_plugin.so"
268+ case "$p" in
269+ darwin-*) lib_name="libagentos_actor_plugin.dylib" ;;
270+ *) lib_name="libagentos_actor_plugin.so" ;;
271+ esac
272+ lib="artifacts/plugin-${p}/${lib_name}"
253273 dest="packages/agentos-plugin/npm/${p}"
254274 if [ ! -f "$lib" ]; then
255275 echo "::error::missing plugin cdylib artifact for ${p}"
@@ -259,7 +279,7 @@ jobs:
259279 echo "::error::missing plugin platform package dir $dest"
260280 exit 1
261281 fi
262- cp "$lib" "${dest}/libagentos_actor_plugin.so "
282+ cp "$lib" "${dest}/${lib_name} "
263283 echo "Placed plugin cdylib for ${p}"
264284 done
265285 - name : Bump package versions for build (version-only)
@@ -320,6 +340,8 @@ jobs:
320340 declare -A PLATFORM_TARGET=(
321341 [linux-x64-gnu]=x86_64-unknown-linux-gnu
322342 [linux-arm64-gnu]=aarch64-unknown-linux-gnu
343+ [darwin-arm64]=aarch64-apple-darwin
344+ [darwin-x64]=x86_64-apple-darwin
323345 )
324346 # Stage release assets: platform binaries + externalized pyodide assets
325347 # (downloaded by the published execution crate's build.rs).
0 commit comments