Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions .github/workflows/nanvix-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,18 +163,10 @@ jobs:

- name: Verify Package
run: |
set -euo pipefail
TARBALL="dist/sqlite-${{ matrix.platform }}-${{ matrix.process-mode }}.tar.bz2"
if [[ ! -f "$TARBALL" ]]; then
echo "::error::Package tarball not found: $TARBALL"
exit 1
fi
echo "Package contents:"
tar tjf "$TARBALL"
if ! (set +o pipefail; tar tjf "$TARBALL" | grep -q 'sysroot/lib/'); then
echo "::error::Package missing sysroot/lib/ entries"
exit 1
fi
make -f Makefile.nanvix CONFIG_NANVIX=y \
NANVIX_HOME="$NANVIX_HOME" NANVIX_TOOLCHAIN="/opt/nanvix" \
PLATFORM="${{ matrix.platform }}" PROCESS_MODE="${{ matrix.process-mode }}" \
verify-package

- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -270,13 +262,14 @@ jobs:
GH_TOKEN: ${{ secrets.DISPATCH_TOKEN }}
ZLIB_TAG: ${{ steps.deps.outputs.zlib_tag }}
run: |
RELEASE_TAG="${GITHUB_SHA::7}-nanvix-${NANVIX_SHA}"
echo "Triggering cpython workflow..."
gh api repos/nanvix/cpython/dispatches \
-X POST \
-H "Accept: application/vnd.github+json" \
-f event_type="sqlite-release" \
-f "client_payload[nanvix_sha]=${NANVIX_SHA}" \
-f "client_payload[sqlite_tag]=${GITHUB_SHA::7}-nanvix-${NANVIX_SHA}" \
-f "client_payload[sqlite_tag]=${RELEASE_TAG}" \
-f "client_payload[zlib_tag]=${ZLIB_TAG}" || echo "::warning::Failed to trigger cpython workflow"

report-failure:
Expand Down
20 changes: 19 additions & 1 deletion Makefile.nanvix
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,24 @@ endif
@echo " Contents:"
@tar tjf dist/$(ARTIFACT_NAME).tar.bz2 | head -20

# ===========================================================================
# Verify Package
# ===========================================================================

verify-package:
@echo "=== Verifying SQLite package ==="
$(eval ARTIFACT_NAME := sqlite-$(PLATFORM)-$(PROCESS_MODE))
@TARBALL="dist/$(ARTIFACT_NAME).tar.bz2"; \
if [ ! -f "$$TARBALL" ]; then \
echo "FAIL: Package tarball not found: $$TARBALL"; exit 1; \
fi; \
echo "Package contents:"; \
tar tjf "$$TARBALL"; \
if ! tar tjf "$$TARBALL" | grep -q 'sysroot/lib/'; then \
echo "FAIL: Package missing sysroot/lib/ entries"; exit 1; \
fi; \
echo " PASS: SQLite package verification"

# ===========================================================================
# Install / Clean
# ===========================================================================
Expand Down Expand Up @@ -286,4 +304,4 @@ distclean: clean
-make distclean 2>/dev/null || true
git clean -fdx -e Makefile.nanvix -e NANVIX.md -e .github -e nanvix-artifacts 2>/dev/null || true

.PHONY: all configure build clean distclean test test-smoke test-integration test-functional package install
.PHONY: all configure build clean distclean test test-smoke test-integration test-functional package verify-package install