diff --git a/.github/occt-sdk-release/README.md b/.github/occt-sdk-release/README.md index 80c9fee..86d782c 100644 --- a/.github/occt-sdk-release/README.md +++ b/.github/occt-sdk-release/README.md @@ -143,7 +143,7 @@ Do not import upstream development branches or source history merely because the development version has advanced. SDK releases in this repository are intended to correspond to identifiable upstream release tags. -As of 2026-11-02, the latest upstream stable GitHub Release is `V8.0.1`. +As of 2026-11-22, the latest upstream stable GitHub Release is `V8_0_2`. Upstream `master` identifies itself as `8.1.0-dev1`, so 8.1 is the next development line but is not yet a stable release to package. @@ -155,8 +155,8 @@ For automatic qualification and publication, the normal policy is: Prerelease qualification is a separate deliberate process and must not reuse the stable-release publication path implicitly. 4. Read the GitHub Release's actual `tag_name`; do not derive the tag from its - display name. For example, the 8.0.1 release name is `V8_0_1` while its - actual tag is `V8.0.1`. + display name. Upstream has used both dotted and underscored stable tags: the + 8.0.1 release tag is `V8.0.1`, while the 8.0.2 release tag is `V8_0_2`. 5. Peel the published tag to its exact commit and build that commit directly from `Open-Cascade-SAS/OCCT`. 6. Let the existing lean-profile checks decide whether the release still matches @@ -190,7 +190,7 @@ a compatibility change, verify all of the following before editing the profile or platform baselines: 1. OCCT version, for example `8.0.1`. -2. Upstream GitHub Release tag, for example `V8.0.1`. +2. Upstream GitHub Release tag, for example `V8.0.1` or `V8_0_2`. 3. The commit to which that upstream tag resolves after peeling annotated tags. Useful checks are: diff --git a/.github/workflows/build-latest-occt-sdk.yml b/.github/workflows/build-latest-occt-sdk.yml index c94ea4e..2ce1875 100644 --- a/.github/workflows/build-latest-occt-sdk.yml +++ b/.github/workflows/build-latest-occt-sdk.yml @@ -18,7 +18,7 @@ on: workflow_dispatch: inputs: upstream_tag: - description: Optional exact stable upstream tag (for example V8.0.1); empty means latest stable release + description: Optional exact stable upstream tag (for example V8.0.1 or V8_0_2); empty means latest stable release required: false type: string force_qualify: @@ -66,11 +66,13 @@ jobs: test "$(jq -r '.draft' <<<"$release_json")" = "false" test "$(jq -r '.prerelease' <<<"$release_json")" = "false" upstream_tag="$(jq -r '.tag_name' <<<"$release_json")" - if [[ ! "$upstream_tag" =~ ^V([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then + if [[ "$upstream_tag" =~ ^V([0-9]+)\.([0-9]+)\.([0-9]+)$ ]] || + [[ "$upstream_tag" =~ ^V([0-9]+)_([0-9]+)_([0-9]+)$ ]]; then + occt_version="${BASH_REMATCH[1]}.${BASH_REMATCH[2]}.${BASH_REMATCH[3]}" + else echo "unsupported stable OCCT tag: $upstream_tag" >&2 exit 1 fi - occt_version="${BASH_REMATCH[1]}" object_json="$(gh api "repos/$UPSTREAM_REPOSITORY/git/ref/tags/$upstream_tag")" object_type="$(jq -r '.object.type' <<<"$object_json")"