Skip to content

Commit

Permalink
Allow just native images to be built
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns committed Nov 28, 2024
1 parent b3339b8 commit 21f6dbc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,19 @@ on:
description: "Publish Java Artifacts"
required: true
default: "true"
do_create_release:
type: boolean
description: "Create Github draft release"
required: true
default: "true"
env:
INPUT_REF: ${{ github.event.inputs.ref }}
INPUT_TAG: ${{ github.event.inputs.tag }}

jobs:
create_draft_release:
name: Create Github draft release
if: github.event.inputs.do_create_release == 'true'
runs-on: ubuntu-latest
steps:
- name: Audit gh version
Expand Down Expand Up @@ -123,7 +129,7 @@ jobs:
build_native_images:
name: Build native test server
needs: create_draft_release
if: github.event.inputs.do_build_native_images == 'true'
if: github.event.inputs.do_build_native_images == 'true' && ${{ always() }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -159,7 +165,7 @@ jobs:
uses: docker://openjdk:21-jdk-oraclelinux7
with:
args: |
sh -c 'yum install -y git && ./gradlew -x :temporal-serviceclient:updateSubmodules :temporal-test-server:build'
sh -c "yum install -y git && ./gradlew -x :temporal-serviceclient:updateSubmodules :temporal-test-server:build"
# path ends in a wildcard because on windows the file ends in '.exe'
# path excludes *.txt because native-image also writes a build manifest txt file
Expand All @@ -175,7 +181,7 @@ jobs:

attach_to_release:
name: Attach native executables to release
needs: build_native_images
needs: [build_native_images, create_draft_release]
runs-on: ubuntu-latest
steps:
- name: Audit gh version
Expand Down

0 comments on commit 21f6dbc

Please sign in to comment.