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
2 changes: 1 addition & 1 deletion .externpro
4 changes: 2 additions & 2 deletions .github/release-tag.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"message": "xpro version 8.5.0.5 tag",
"tag": "xpv8.5.0.5"
"message": "xpro version 8.5.0.6 tag",
"tag": "xpv8.5.0.6"
}
6 changes: 3 additions & 3 deletions .github/workflows/xpbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ jobs:
contents: read
pull-requests: write
packages: write
uses: externpro/externpro/.github/workflows/build-linux.yml@26.02.2
uses: externpro/externpro/.github/workflows/build-linux.yml@26.02.6
secrets:
automation_token: ${{ secrets.GHCR_TOKEN }}
with:
cmake_workflow_preset_suffix: Release
macos:
uses: externpro/externpro/.github/workflows/build-macos.yml@26.02.2
uses: externpro/externpro/.github/workflows/build-macos.yml@26.02.6
secrets: inherit
with:
cmake_workflow_preset_suffix: Release
windows:
uses: externpro/externpro/.github/workflows/build-windows.yml@26.02.2
uses: externpro/externpro/.github/workflows/build-windows.yml@26.02.6
secrets: inherit
with:
cmake_workflow_preset_suffix: Release
25 changes: 25 additions & 0 deletions .github/workflows/xpcascade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: xpCascade seed
# on release publish, tell the externpro cascade coordinator about it —
# fire always; the coordinator decides whether a cascade is needed
permissions:
contents: read
on:
release:
types: [published]
jobs:
seed:
runs-on: ubuntu-latest
steps:
-
name: Dispatch cascade-seed to externpro
env:
GH_TOKEN: ${{ secrets.XPRO_TOKEN }}
run: |
if [ -z "${GH_TOKEN:-}" ]; then
echo "::warning::secrets.XPRO_TOKEN not set — release ${{ github.event.release.tag_name }} not reported to the cascade coordinator"
exit 0
fi
gh api repos/externpro/externpro/dispatches \
-f event_type=cascade-seed \
-f "client_payload[node]=${{ github.event.repository.name }}" \
-f "client_payload[tag]=${{ github.event.release.tag_name }}"
2 changes: 1 addition & 1 deletion .github/workflows/xprelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
# Upload build artifacts as release assets
release-from-build:
if: github.event_name == 'workflow_dispatch'
uses: externpro/externpro/.github/workflows/release-from-build.yml@26.02.2
uses: externpro/externpro/.github/workflows/release-from-build.yml@26.02.6
with:
workflow_run_url: ${{ github.event.inputs.workflow_run_url }}
permissions:
Expand Down
77 changes: 76 additions & 1 deletion .github/workflows/xpsync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,84 @@ permissions:
packages: write
on:
workflow_dispatch:
inputs:
target_ref:
description: 'externpro ref to sync to (branch or tag)'
required: false
type: string
default: 'main'
release_tag:
description: 'Apply the release:tag label to the sync PR'
required: false
type: boolean
default: false
push:
branches: ["xpsync"]
schedule:
- cron: '37 5 * * *'
concurrency:
group: xpsync
jobs:
hook:
# runs the repo's .github/xpsync-hook.sh (if present) on every trigger —
# keeps the contract simple: hooks must be cheap and idempotent.
# Only scheduled runs are gated on hook work; push and dispatch proceed
# to the full sync regardless (see sync job's if).
permissions:
contents: write
outputs:
work: ${{ steps.gate.outputs.work }}
runs-on: ubuntu-latest
steps:
-
name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
-
name: Run xpsync-hook and gate sync
id: gate
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -B xpsync origin/xpsync 2>/dev/null || git checkout -B xpsync
if [ -f .github/xpsync-hook.sh ]; then
bash .github/xpsync-hook.sh
else
echo "no .github/xpsync-hook.sh found"
fi
BASE="origin/${{ github.event.repository.default_branch }}"
work=false
if [ "$(git rev-list --count "${BASE}..HEAD")" -gt 0 ]; then
work=true
# skip the churn if an open xpsync PR already carries these commits
while read -r head; do
[ -n "${head}" ] || continue
git fetch --depth 1 origin "${head}" 2>/dev/null || continue
if [ "$(git rev-list --count FETCH_HEAD..HEAD)" -eq 0 ]; then
echo "open PR branch ${head} already contains this work"
work=false
break
fi
done < <(gh pr list --state open --json headRefName \
--jq '.[].headRefName | select(startswith("xpsync-"))')
fi
echo "work=${work}" >> "$GITHUB_OUTPUT"
if [ "${work}" = "true" ]; then
# github.token credentials — this push does not retrigger the
# on.push workflow (events from GITHUB_TOKEN don't run workflows)
git push origin "HEAD:xpsync"
fi
sync:
needs: hook
if: ${{ always() && (github.event_name != 'schedule' || needs.hook.outputs.work == 'true') }}
uses: externpro/externpro/.github/workflows/sync-externpro.yml@main
secrets:
automation_token: ${{ secrets.XPRO_TOKEN }}
with: {}
with:
target_ref: ${{ inputs.target_ref || 'main' }}
release_tag: ${{ inputs.release_tag || false }}
2 changes: 1 addition & 1 deletion .github/workflows/xptag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
tag:
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'xpro' && contains(github.event.pull_request.labels.*.name, 'release:tag') }}
uses: externpro/externpro/.github/workflows/tag-release.yml@26.02.2
uses: externpro/externpro/.github/workflows/tag-release.yml@26.02.6
with:
merge_sha: ${{ github.event.pull_request.merge_commit_sha }}
pr_number: ${{ github.event.pull_request.number }}
Expand Down
13 changes: 13 additions & 0 deletions xprodeps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"format_version": 1,
"catalog": "externpro/node-addon-api",
"pins_sha256": "f7d3f50b467b7c9c95eac2d70ac3c4b2062d78c4c0f69cd98801fd57ab4a3e1f",
"aliases": {"BZip2": "bzip2", "Boost": "boost", "CURL": "curl", "Ceres": "ceres-solver", "EXPAT": "libexpat", "Eigen3": "eigen", "GEOS": "geos", "GLEW": "glew", "GTest": "googletest", "HDF5": "hdf5", "Jasper": "jasper", "LibSSH2": "libssh2", "Libssh2": "libssh2", "Lua": "lua", "OpenSSL": "openssl", "Patch": "patch", "Protobuf": "protobuf", "ZLIB": "zlib", "wx": "wxWidgets", "wxwidgets": "wxWidgets"},
"nodes": {
"node-addon-api": {"repo": "github.com/externpro/node-addon-api", "tag": "xpv8.5.0.5", "manifest_sha256": "d2cd90621d98ee207fb04c7d3c8378ac285fe675bd65bdcd98c23e61c92a66f1", "origin": "catalog", "desc": "Module for using N-API from C++", "license": "[MIT](https://github.com/nodejs/node-addon-api/blob/v8.5.0/LICENSE.md 'MIT License')", "web": "https://github.com/nodejs/node-addon-api", "upstream": "github.com/nodejs/node-addon-api", "xpdiff": "intro", "base": "v8.5.0"},
"nodexp": {"repo": "github.com/externpro/nodexp", "tag": "xpv22.19.0.5", "manifest_sha256": "39cb6f86ae5e0cb8a9b65b75d8a43056f2bca904a76a01eb2ac72d9674b0b344", "origin": "catalog", "desc": "node/npm development platform and runtime executable bundled as xpro package to build addons", "license": "[MIT](https://raw.githubusercontent.com/nodejs/node/v22.19.0/LICENSE 'MIT License')", "web": "https://nodejs.org/en/blog/release/v22.19.0/", "xpdiff": "bin", "base": "v0"}
},
"edges": [
{"dependent": "node-addon-api", "dependency": "nodexp", "kind": "dep", "expected": {"repo": "github.com/externpro/nodexp", "tag": "xpv22.19.0.5", "manifest_sha256": "39cb6f86ae5e0cb8a9b65b75d8a43056f2bca904a76a01eb2ac72d9674b0b344"}, "mismatch": false}
]
}
Loading