2222 R2_ENDPOINT : https://2a94c6a0ced8d35ea63cddc86c2681e7.r2.cloudflarestorage.com
2323 SIDECAR_PLATFORMS : " linux-x64-gnu linux-arm64-gnu darwin-x64 darwin-arm64"
2424 PUBLISH_INCLUDE_REGISTRY_PACKAGES : " 1"
25+ LINUX_GNU_LLVM_VERSION : " 22"
26+ LINUX_GNU_SYSROOT_TAG : " sysroot-20250207"
2527
2628jobs :
2729 context :
@@ -103,14 +105,16 @@ jobs:
103105 - uses : Swatinem/rust-cache@v2
104106 with :
105107 workspaces : . -> target
106- key : ${{ matrix.target }}-${{ needs.context.outputs.trigger }}
108+ key : ${{ matrix.target }}-${{ env.LINUX_GNU_SYSROOT_TAG }}-llvm-${{ env.LINUX_GNU_LLVM_VERSION }}-${{ needs.context.outputs.trigger }}
107109 - uses : actions/cache@v4
108110 with :
109111 path : ~/.cargo/.rusty_v8
110112 key : ${{ runner.os }}-${{ matrix.target }}-rusty-v8-${{ hashFiles('Cargo.lock') }}
111113 restore-keys : |
112114 ${{ runner.os }}-${{ matrix.target }}-rusty-v8-
113115 - run : pnpm install --frozen-lockfile --filter='!@agentos/website'
116+ - name : Set up Linux GNU sysroot
117+ run : scripts/ci/setup-linux-gnu-sysroot.sh
114118 - name : Build sidecar binaries
115119 id : build
116120 run : |
@@ -128,6 +132,16 @@ jobs:
128132 cp "target/${{ matrix.target }}/${profile}/agentos-sidecar" "$out/agentos-sidecar"
129133 cp "target/${{ matrix.target }}/${profile}/agentos-native-sidecar" "$out/agentos-native-sidecar"
130134 echo "dir=$out" >> "$GITHUB_OUTPUT"
135+ - name : Check glibc floor
136+ run : |
137+ scripts/ci/check-linux-glibc-floor.sh \
138+ "${{ steps.build.outputs.dir }}/agentos-sidecar" \
139+ "${{ steps.build.outputs.dir }}/agentos-native-sidecar"
140+ - name : Smoke-run in old Linux containers
141+ run : |
142+ scripts/ci/smoke-linux-artifacts.sh binary \
143+ "${{ steps.build.outputs.dir }}/agentos-sidecar" \
144+ "${{ steps.build.outputs.dir }}/agentos-native-sidecar"
131145 - uses : actions/upload-artifact@v4
132146 with :
133147 name : sidecar-${{ matrix.platform }}
@@ -162,14 +176,16 @@ jobs:
162176 - uses : Swatinem/rust-cache@v2
163177 with :
164178 workspaces : . -> target
165- key : plugin-${{ matrix.target }}-${{ needs.context.outputs.trigger }}
179+ key : plugin-${{ matrix.target }}-${{ env.LINUX_GNU_SYSROOT_TAG }}-llvm-${{ env.LINUX_GNU_LLVM_VERSION }}-${{ needs.context.outputs.trigger }}
166180 - uses : actions/cache@v4
167181 with :
168182 path : ~/.cargo/.rusty_v8
169183 key : ${{ runner.os }}-${{ matrix.target }}-rusty-v8-${{ hashFiles('Cargo.lock') }}
170184 restore-keys : |
171185 ${{ runner.os }}-${{ matrix.target }}-rusty-v8-
172186 - run : pnpm install --frozen-lockfile --filter='!@agentos/website'
187+ - name : Set up Linux GNU sysroot
188+ run : scripts/ci/setup-linux-gnu-sysroot.sh
173189 - name : Build plugin cdylib
174190 id : build
175191 run : |
@@ -186,6 +202,14 @@ jobs:
186202 cp "target/${{ matrix.target }}/${profile}/libagentos_actor_plugin.so" \
187203 "$out/libagentos_actor_plugin.so"
188204 echo "dir=$out" >> "$GITHUB_OUTPUT"
205+ - name : Check glibc floor
206+ run : |
207+ scripts/ci/check-linux-glibc-floor.sh \
208+ "${{ steps.build.outputs.dir }}/libagentos_actor_plugin.so"
209+ - name : Smoke-run in old Linux containers
210+ run : |
211+ scripts/ci/smoke-linux-artifacts.sh shared-library \
212+ "${{ steps.build.outputs.dir }}/libagentos_actor_plugin.so"
189213 - uses : actions/upload-artifact@v4
190214 with :
191215 name : plugin-${{ matrix.platform }}
0 commit comments