LLM inference in C/C++
C++ ggml
ci : added ABI reports as github artifact (#30619)
Sandro Hanea83f9389419ef
diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.ymlindex 57c3a04a57..2e5e44caaa 100644--- a/.github/workflows/make-release.yml+++ b/.github/workflows/make-release.yml@@ -61,8 +61,17 @@ jobs:RELEASE_BRANCH: ${{ github.ref_name }}SKIP_APIABI_CHECK: ${{ github.event.inputs.skip_apiabi_check }}APIABI_COMPARE_TAG: ${{ github.event.inputs.apiabi_compare_tag }}+ APIABI_REPORT_DIR: ${{ runner.temp }}/apiabi-reportsREQUIRE_DOCKER: ${{ github.event.inputs.require_docker }}+ - name: Upload API/ABI reports+ if: ${{ always() && github.event.inputs.skip_apiabi_check != 'true' }}+ uses: actions/upload-artifact@v7+ with:+ name: apiabi-reports+ path: ${{ runner.temp }}/apiabi-reports+ if-no-files-found: ignore+- name: Create release tagif: ${{ github.event.inputs.dry_run == 'false' }}run: |diff --git a/scripts/check-release-apiabi.sh b/scripts/check-release-apiabi.shindex f4803adc51..c624d12c5f 100755--- a/scripts/check-release-apiabi.sh+++ b/scripts/check-release-apiabi.sh@@ -15,6 +15,7 @@# Environment:# SKIP_APIABI_CHECK: set to 1 or true to skip# APIABI_COMPARE_TAG: equivalent to --tag (used by CI)+# APIABI_REPORT_DIR: preserve reports and dumps in this directory, even if the comparison failsset -euo pipefail@@ -113,4 +114,15 @@ cmake --build "$BUILD_NEW" --parallel "$(nproc)"(cd "$WORKTREE_DIR" && "$SCRIPT_DIR/check-apiabi-compat.sh" --include-path ggml/include --generate "$BUILD_OLD" "${LIBS[@]}")(cd "$REPO_ROOT" && "$SCRIPT_DIR/check-apiabi-compat.sh" --include-path ggml/include --generate "$BUILD_NEW" "${LIBS[@]}")-(cd "$REPO_ROOT" && "$SCRIPT_DIR/check-apiabi-compat.sh" "${CHECK_FLAGS[@]}" --check "$BUILD_OLD" "$BUILD_NEW")++CHECK_RESULT=0+(cd "$REPO_ROOT" && "$SCRIPT_DIR/check-apiabi-compat.sh" "${CHECK_FLAGS[@]}" --check "$BUILD_OLD" "$BUILD_NEW") || CHECK_RESULT=$?++if [[ -n "${APIABI_REPORT_DIR:-}" ]]; then+ mkdir -p "$APIABI_REPORT_DIR/old" "$APIABI_REPORT_DIR/new"+ cp -R "$BUILD_OLD/apiabi/." "$APIABI_REPORT_DIR/old/"+ cp -R "$BUILD_NEW/apiabi/." "$APIABI_REPORT_DIR/new/"+ echo "API/ABI reports saved to $APIABI_REPORT_DIR"+fi++exit "$CHECK_RESULT"