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"
27+ LINUX_GNU_GLIBC_FLOOR_MINOR : " 27"
28+ LINUX_GNU_GLIBC_REGRESSION_MINOR : " 32"
2529
2630jobs :
2731 context :
@@ -103,14 +107,16 @@ jobs:
103107 - uses : Swatinem/rust-cache@v2
104108 with :
105109 workspaces : . -> target
106- key : ${{ matrix.target }}-${{ needs.context.outputs.trigger }}
110+ key : ${{ matrix.target }}-${{ env.LINUX_GNU_SYSROOT_TAG }}-llvm-${{ env.LINUX_GNU_LLVM_VERSION }}-${{ needs.context.outputs.trigger }}
107111 - uses : actions/cache@v4
108112 with :
109113 path : ~/.cargo/.rusty_v8
110114 key : ${{ runner.os }}-${{ matrix.target }}-rusty-v8-${{ hashFiles('Cargo.lock') }}
111115 restore-keys : |
112116 ${{ runner.os }}-${{ matrix.target }}-rusty-v8-
113117 - run : pnpm install --frozen-lockfile --filter='!@agentos/website'
118+ - name : Set up Linux GNU sysroot
119+ run : scripts/ci/setup-linux-gnu-sysroot.sh
114120 - name : Build sidecar binaries
115121 id : build
116122 run : |
@@ -128,6 +134,16 @@ jobs:
128134 cp "target/${{ matrix.target }}/${profile}/agentos-sidecar" "$out/agentos-sidecar"
129135 cp "target/${{ matrix.target }}/${profile}/agentos-native-sidecar" "$out/agentos-native-sidecar"
130136 echo "dir=$out" >> "$GITHUB_OUTPUT"
137+ - name : Check glibc floor
138+ run : |
139+ scripts/ci/check-linux-glibc-floor.sh \
140+ "${{ steps.build.outputs.dir }}/agentos-sidecar" \
141+ "${{ steps.build.outputs.dir }}/agentos-native-sidecar"
142+ - name : Smoke-run in old Linux containers
143+ run : |
144+ scripts/ci/smoke-linux-artifacts.sh binary \
145+ "${{ steps.build.outputs.dir }}/agentos-sidecar" \
146+ "${{ steps.build.outputs.dir }}/agentos-native-sidecar"
131147 - uses : actions/upload-artifact@v4
132148 with :
133149 name : sidecar-${{ matrix.platform }}
@@ -162,14 +178,16 @@ jobs:
162178 - uses : Swatinem/rust-cache@v2
163179 with :
164180 workspaces : . -> target
165- key : plugin-${{ matrix.target }}-${{ needs.context.outputs.trigger }}
181+ key : plugin-${{ matrix.target }}-${{ env.LINUX_GNU_SYSROOT_TAG }}-llvm-${{ env.LINUX_GNU_LLVM_VERSION }}-${{ needs.context.outputs.trigger }}
166182 - uses : actions/cache@v4
167183 with :
168184 path : ~/.cargo/.rusty_v8
169185 key : ${{ runner.os }}-${{ matrix.target }}-rusty-v8-${{ hashFiles('Cargo.lock') }}
170186 restore-keys : |
171187 ${{ runner.os }}-${{ matrix.target }}-rusty-v8-
172188 - run : pnpm install --frozen-lockfile --filter='!@agentos/website'
189+ - name : Set up Linux GNU sysroot
190+ run : scripts/ci/setup-linux-gnu-sysroot.sh
173191 - name : Build plugin cdylib
174192 id : build
175193 run : |
@@ -186,6 +204,14 @@ jobs:
186204 cp "target/${{ matrix.target }}/${profile}/libagentos_actor_plugin.so" \
187205 "$out/libagentos_actor_plugin.so"
188206 echo "dir=$out" >> "$GITHUB_OUTPUT"
207+ - name : Check glibc floor
208+ run : |
209+ scripts/ci/check-linux-glibc-floor.sh \
210+ "${{ steps.build.outputs.dir }}/libagentos_actor_plugin.so"
211+ - name : Smoke-run in old Linux containers
212+ run : |
213+ scripts/ci/smoke-linux-artifacts.sh shared-library \
214+ "${{ steps.build.outputs.dir }}/libagentos_actor_plugin.so"
189215 - uses : actions/upload-artifact@v4
190216 with :
191217 name : plugin-${{ matrix.platform }}
0 commit comments