Files
floci/.github/workflows/standalone-binaries.yml
T
dependabot[bot] 0a3188e744 chore(deps): bump the actions-minor-patch group across 1 directory with 8 updates (#9950)
Bumps the actions-minor-patch group with 8 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [graalvm/setup-graalvm](https://github.com/graalvm/setup-graalvm) | `1.6.7` | `1.6.10` |
| [docker/login-action](https://github.com/docker/login-action) | `4.7.0` | `4.8.0` |
| [actions/setup-java](https://github.com/actions/setup-java) | `6.1.0` | `6.3.0` |
| [azure/setup-helm](https://github.com/azure/setup-helm) | `5.0.1` | `5.1.0` |
| [anchore/sbom-action](https://github.com/anchore/sbom-action) | `0.24.3` | `0.24.4` |
| [anchore/scan-action](https://github.com/anchore/scan-action) | `7.4.2` | `7.4.3` |
| [aws-actions/amazon-ecr-login](https://github.com/aws-actions/amazon-ecr-login) | `2.1.7` | `2.2.0` |
| [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) | `4.1.2` | `4.1.4` |



Updates `graalvm/setup-graalvm` from 1.6.7 to 1.6.10
- [Release notes](https://github.com/graalvm/setup-graalvm/releases)
- [Commits](https://github.com/graalvm/setup-graalvm/compare/27b360dbb857524eaf0b4c4cef364d38e5b4f173...60e76998d25690099182b796e99b8804da582d90)

Updates `docker/login-action` from 4.7.0 to 4.8.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/81c6f93d4bc991e510b342a00b419b3bb4efc5c6...8aa5831fb8d48d8f76594c7ddde61ae58019f550)

Updates `actions/setup-java` from 6.1.0 to 6.3.0
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/b843ebf9b913146b38da2eaa7aeddf76074ae1ad...d1374f8ac74474200d16ef8ecee22c7ae7a51880)

Updates `azure/setup-helm` from 5.0.1 to 5.1.0
- [Release notes](https://github.com/azure/setup-helm/releases)
- [Changelog](https://github.com/Azure/setup-helm/blob/main/CHANGELOG.md)
- [Commits](https://github.com/azure/setup-helm/compare/9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310...2f5e7bc67f1f9972ab16657bb795f36d8f04de0e)

Updates `anchore/sbom-action` from 0.24.3 to 0.24.4
- [Release notes](https://github.com/anchore/sbom-action/releases)
- [Changelog](https://github.com/anchore/sbom-action/blob/main/RELEASE.md)
- [Commits](https://github.com/anchore/sbom-action/compare/66cbf4bc1f1c0d2edc94016e65bc221b6bb0ad6c...dfcb83b97731532d72be422cbc51ee64adb6fd56)

Updates `anchore/scan-action` from 7.4.2 to 7.4.3
- [Release notes](https://github.com/anchore/scan-action/releases)
- [Changelog](https://github.com/anchore/scan-action/blob/main/RELEASE.md)
- [Commits](https://github.com/anchore/scan-action/compare/27805bf3b4e84b4a5c980df22ed233c00390a439...11983a512817154c80a9db660c1a184be7513ed6)

Updates `aws-actions/amazon-ecr-login` from 2.1.7 to 2.2.0
- [Release notes](https://github.com/aws-actions/amazon-ecr-login/releases)
- [Changelog](https://github.com/aws-actions/amazon-ecr-login/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/amazon-ecr-login/compare/03f1aad4c6c7ffd436567f42f9384779290529bd...7290e214a610b32bc0eef81748948b6d466a8783)

Updates `sigstore/cosign-installer` from 4.1.2 to 4.1.4
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/6f9f17788090df1f26f669e9d70d6ae9567deba6...881c63bd87e38389154debd8331404ce7ca8a3ab)

---
updated-dependencies:
- dependency-name: graalvm/setup-graalvm
  dependency-version: 1.6.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-minor-patch
- dependency-name: docker/login-action
  dependency-version: 4.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor-patch
- dependency-name: actions/setup-java
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor-patch
- dependency-name: azure/setup-helm
  dependency-version: 5.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor-patch
- dependency-name: anchore/sbom-action
  dependency-version: 0.24.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-minor-patch
- dependency-name: anchore/scan-action
  dependency-version: 7.4.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-minor-patch
- dependency-name: aws-actions/amazon-ecr-login
  dependency-version: 2.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor-patch
- dependency-name: sigstore/cosign-installer
  dependency-version: 4.1.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-01 20:41:43 -06:00

245 lines
10 KiB
YAML

name: Standalone Binaries
# Builds and smoke-tests the macOS and Windows floci-aws binaries. The Linux release binaries are
# the native artifacts release.yml builds for the images.
#
# Releases build darwin-amd64 and windows-amd64 only. darwin-arm64 cannot build on the free
# macos-latest runner (native-image analysis needs about 6.6 GB, the runner gives it 5.68 GB), so
# Apple Silicon Macs run the darwin-amd64 binary under Rosetta 2 until a larger runner is in place.
#
# release.yml calls this for every version tag, and publish-binaries there uploads what it built.
# Run it by hand (Actions > Standalone Binaries > Run workflow) to try a branch, a runner or a
# native-image setting without cutting a release: a manual run only uploads workflow artifacts,
# it never writes to a GitHub Release. Examples:
# platforms: darwin-arm64 native-args: -Dquarkus.native.native-image-xmx=6g
# platforms: darwin-arm64 macos-runner: macos-latest-xlarge
# platforms: darwin-amd64 macos-amd64-runner: macos-latest (builds under Rosetta 2)
#
# Mandrel has no macOS distribution, so every binary here uses GraalVM Community, which has no
# -H:-AOTSingleCallsiteInline option to pass.
on:
workflow_call:
inputs:
platforms:
description: Comma-separated platforms to build (darwin-arm64, darwin-amd64, windows-amd64)
required: false
type: string
default: darwin-arm64,darwin-amd64,windows-amd64
version:
description: Version the smoke test expects /_floci/health to report (default, the pom version)
required: false
type: string
default: ''
ref:
description: Branch, tag or SHA to build (default, the caller's ref). A release backfill passes its tag
required: false
type: string
default: ''
workflow_dispatch:
inputs:
ref:
description: Branch, tag or SHA to build (default, the branch the run is started from)
required: false
type: string
default: ''
platforms:
description: Comma-separated platforms to build (darwin-arm64, darwin-amd64, windows-amd64)
required: false
type: string
default: darwin-arm64,darwin-amd64,windows-amd64
native-args:
description: Extra Maven arguments for every build, e.g. -Dquarkus.native.native-image-xmx=6g
required: false
type: string
default: ''
macos-runner:
description: Runner label for the darwin-arm64 build
required: false
type: string
default: macos-latest
macos-amd64-runner:
description: Runner label for the darwin-amd64 build (an Apple Silicon one builds under Rosetta 2)
required: false
type: string
default: macos-15-intel
timeout-minutes:
# A manual run passes inputs as strings, so the jobs parse this with fromJSON.
description: Job timeout for every build (0 keeps 60 for darwin-arm64 and 90 for the others)
required: false
type: number
default: 0
permissions:
contents: read
jobs:
prepare:
name: Resolve the expected version
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.ref }}
- name: Read the version
id: version
env:
REQUESTED: ${{ inputs.version }}
run: |
version=${REQUESTED:-$(mvn -q -B help:evaluate -Dexpression=project.version -DforceStdout)}
echo "version=$version" >> "$GITHUB_OUTPUT"
echo "Expected version: $version"
build-binary-darwin-arm64:
name: Build standalone binary (darwin-arm64)
needs: prepare
if: contains(format(',{0},', inputs.platforms), ',darwin-arm64,')
runs-on: ${{ inputs.macos-runner || 'macos-latest' }}
timeout-minutes: ${{ fromJSON(format('{0}', inputs.timeout-minutes || 0)) > 0 && fromJSON(format('{0}', inputs.timeout-minutes || 0)) || 60 }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.ref }}
- uses: graalvm/setup-graalvm@60e76998d25690099182b796e99b8804da582d90 # v1
with:
java-version: '25'
distribution: 'graalvm-community'
cache: maven
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build native executable
env:
NATIVE_ARGS: ${{ inputs.native-args }}
# NATIVE_ARGS splits on spaces into separate Maven arguments.
run: |
read -ra extra <<< "$NATIVE_ARGS"
mvn clean package -Dnative -DskipTests -B ${extra[@]+"${extra[@]}"}
- name: Smoke-test the standalone binary
env:
EXPECTED_VERSION: ${{ needs.prepare.outputs.version }}
run: .github/scripts/smoke-binary.sh "$(ls target/*-runner)" "$EXPECTED_VERSION"
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: binary-darwin-arm64
path: target/*-runner
if-no-files-found: error
retention-days: 7
build-binary-darwin-amd64:
name: Build standalone binary (darwin-amd64)
# native-image cannot cross-compile. The default Intel runner (macos-15-intel) builds natively;
# on an Apple Silicon runner the same steps run an x86_64 GraalVM under Rosetta 2.
# Built for x86-64-v2: GraalVM's default, x86-64-v3, asks for AVX2, BMI and FMA, which Rosetta 2
# does not provide, so the binary would not start on the Apple Silicon Macs it is published for.
# setup-graalvm has no architecture override, so the x86_64 JDK is installed by hand: GraalVM
# Community, like the other binaries, pinned to 25.0.1 (the last release with a macOS x64 build)
# and checked against its published SHA-256 before anything built with it is signed.
needs: prepare
if: contains(format(',{0},', inputs.platforms), ',darwin-amd64,')
runs-on: ${{ inputs.macos-amd64-runner || 'macos-15-intel' }}
timeout-minutes: ${{ fromJSON(format('{0}', inputs.timeout-minutes || 0)) > 0 && fromJSON(format('{0}', inputs.timeout-minutes || 0)) || 90 }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.ref }}
- name: Install Rosetta 2
if: runner.arch == 'ARM64'
run: sudo softwareupdate --install-rosetta --agree-to-license
- name: Install x86_64 GraalVM
env:
GRAALVM_X64_URL: https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-25.0.1/graalvm-community-jdk-25.0.1_macos-x64_bin.tar.gz
GRAALVM_X64_SHA256: a3d895b4cd1c783badbd277ec70409806bd4102fca0d2a60dbaeb0bab41aec30
run: |
curl -fsSL -o "$RUNNER_TEMP/graalvm-x64.tar.gz" "$GRAALVM_X64_URL"
echo "$GRAALVM_X64_SHA256 $RUNNER_TEMP/graalvm-x64.tar.gz" | shasum -a 256 -c -
mkdir -p "$RUNNER_TEMP/graalvm-x64"
tar -xzf "$RUNNER_TEMP/graalvm-x64.tar.gz" -C "$RUNNER_TEMP/graalvm-x64" --strip-components 1
echo "JAVA_HOME=$RUNNER_TEMP/graalvm-x64/Contents/Home" >> "$GITHUB_ENV"
echo "GRAALVM_HOME=$RUNNER_TEMP/graalvm-x64/Contents/Home" >> "$GITHUB_ENV"
echo "$RUNNER_TEMP/graalvm-x64/Contents/Home/bin" >> "$GITHUB_PATH"
- name: Build native executable (x86_64)
env:
NATIVE_ARGS: ${{ inputs.native-args }}
ARCH_PREFIX: ${{ runner.arch == 'ARM64' && 'arch -x86_64' || '' }}
# NATIVE_ARGS splits on spaces into separate Maven arguments.
run: |
read -ra extra <<< "$NATIVE_ARGS"
${ARCH_PREFIX} mvn clean package -Dnative -DskipTests -B \
-Dquarkus.native.additional-build-args-append=-march=x86-64-v2 \
${extra[@]+"${extra[@]}"}
- name: Verify the binary is x86_64
run: file target/*-runner | grep -q x86_64
- name: Smoke-test the standalone binary
env:
EXPECTED_VERSION: ${{ needs.prepare.outputs.version }}
ARCH_PREFIX: ${{ runner.arch == 'ARM64' && 'arch -x86_64' || '' }}
run: ${ARCH_PREFIX} .github/scripts/smoke-binary.sh "$(ls target/*-runner)" "$EXPECTED_VERSION"
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: binary-darwin-amd64
path: target/*-runner
if-no-files-found: error
retention-days: 7
build-binary-windows-amd64:
name: Build standalone binary (windows-amd64)
needs: prepare
if: contains(format(',{0},', inputs.platforms), ',windows-amd64,')
runs-on: windows-latest
timeout-minutes: ${{ fromJSON(format('{0}', inputs.timeout-minutes || 0)) > 0 && fromJSON(format('{0}', inputs.timeout-minutes || 0)) || 90 }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.ref }}
- uses: graalvm/setup-graalvm@60e76998d25690099182b796e99b8804da582d90 # v1
with:
java-version: '25'
distribution: 'graalvm-community'
cache: maven
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build native executable
# Keeps the Windows snappy-java and JNA dispatch libraries every other build excludes
# (see quarkus.native.resources in application.yml).
shell: bash
env:
NATIVE_ARGS: ${{ inputs.native-args }}
# NATIVE_ARGS splits on spaces into separate Maven arguments.
run: |
read -ra extra <<< "$NATIVE_ARGS"
mvn clean package -Dnative -DskipTests -B \
"-Dfloci.native.windows-jni-include=*" \
-Dfloci.native.windows-jni-exclude=none \
${extra[@]+"${extra[@]}"}
- name: Smoke-test the standalone binary
shell: bash
env:
EXPECTED_VERSION: ${{ needs.prepare.outputs.version }}
run: .github/scripts/smoke-binary.sh "$(ls target/*-runner.exe)" "$EXPECTED_VERSION"
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: binary-windows-amd64
path: target/*-runner.exe
if-no-files-found: error
retention-days: 7