From c24d98be0596ec452355b88cb88ee90df00d14df Mon Sep 17 00:00:00 2001 From: redcatbear Date: Fri, 27 Nov 2026 09:28:26 +0100 Subject: [PATCH 1/2] Fixed filtering in native image release script. --- .github/workflows/github_release.sh | 34 ++++++++++++++--------------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/github_release.sh b/.github/workflows/github_release.sh index 81496107..61afd1eb 100755 --- a/.github/workflows/github_release.sh +++ b/.github/workflows/github_release.sh @@ -30,19 +30,15 @@ calculate_checksum "$sbom_path" readonly sbom_checksum_path="${sbom_path}.sha256" shopt -s nullglob -native_assets=("$base_dir"/native-image/target/openfasttrace-*) -# Expect binaries for Linux x86 + ARM, macOS ARM, Windows x86 -if [[ "${#native_assets[@]}" -ne 4 ]]; then - echo "Expected 4 native images in native-image/target, found ${#native_assets[@]}" >&2 - exit 1 -fi +native_assets=() native_release_assets=() -for native_asset in "${native_assets[@]}"; do - calculate_checksum "$native_asset" - native_release_assets+=("$native_asset" "${native_asset}.sha256") +for native_asset in "$base_dir"/native-image/target/openfasttrace-*; do + [[ ${native_asset##*/} =~ ^openfasttrace-(linux|windows|macos)([-._].*)?$ ]] && + native_assets+=("$native_asset") + calculate_checksum "$native_asset" + native_release_assets+=("$native_asset" "${native_asset}.sha256") done - # Create GitHub release readonly changes_file="$base_dir/doc/changes/changes_${project_version}.md" notes=$(cat "$changes_file") @@ -50,15 +46,17 @@ readonly notes readonly title="Release $project_version" readonly tag="$project_version" -echo "Creating release:" -echo "Git tag : $tag" -echo "Title : $title" -echo "Changes file : $changes_file" -echo "Artifact file: $artifact_path" +echo +echo "Release Information" +echo "-------------------" +echo "Git tag : $tag" +echo "Title : $title" +echo "Changes file : $changes_file" +echo "Artifact file : $artifact_path" echo "Artifact checksum: $artifact_checksum_path" -echo "SBOM file : $sbom_path" -echo "SBOM checksum: $sbom_checksum_path" -printf 'Native asset : %s\n' "${native_assets[@]}" +echo "SBOM file : $sbom_path" +echo "SBOM checksum : $sbom_checksum_path" +printf 'Platform binaries: %s\n' "${native_assets[@]}" release_url=$(gh release create --latest --title "$title" --notes "$notes" --target main "$tag" \ "$artifact_path" "$artifact_checksum_path" "$sbom_path" "$sbom_checksum_path" \ From 52efe57a63e2504ff8f5f4a6f9da9472194d98b9 Mon Sep 17 00:00:00 2001 From: redcatbear Date: Fri, 27 Nov 2026 09:29:21 +0100 Subject: [PATCH 2/2] Changed variable name to avoid warning. Updated `actions/download-artifact` to version 8. --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c354a870..876aa604 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -137,13 +137,13 @@ jobs: server-username-env-var: MAVEN_USERNAME server-password-env-var: MAVEN_PASSWORD gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} - gpg-passphrase: MAVEN_GPG_PASSPHRASE + gpg-passphrase-env-var: MAVEN_GPG_PASSPHRASE - name: Build run: mvn --batch-mode -T 1C clean install -Dossindex.skip=true - name: Download native images - uses: actions/download-artifact@v7 + uses: actions/download-artifact@v8 with: pattern: openfasttrace-native-* path: native-image/target