Skip to content

Commit

Permalink
Builds
Browse files Browse the repository at this point in the history
  • Loading branch information
thegridman committed Jan 16, 2025
1 parent e74f9d5 commit 42132d5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
# Coherence CE GitHub Actions Examples - Build.
# ---------------------------------------------------------------------------

name: Examples - Build
name: Examples Build

on:
workflow_call:
inputs:
runner:
required: true
type: string
jdk:
default: ubuntu-latest
required: true
type: string

Expand All @@ -35,7 +33,7 @@ jobs:
uses: oracle-actions/setup-java@v1
with:
website: oracle.com
release: ${{ inputs.jdk }}
release: 21

- name: Print Maven & Java version
run: mvn -version
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,22 @@
# Coherence CE GitHub Actions CI build.
# ---------------------------------------------------------------------------

name: CI Build
name: Parallel CI Build

on:
workflow_call:
inputs:
runner:
default: ubuntu-latest
required: true
type: string
jdk:
pull_request:
types:
- opened
- committed
inputs:
runner:
default: ubuntu-latest
required: true
type: string

Expand Down Expand Up @@ -51,7 +58,7 @@ jobs:
uses: oracle-actions/setup-java@v1
with:
website: oracle.com
release: ${{ inputs.jdk }}
release: 21

- name: Print Maven & Java version
run: mvn -version
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
uses: ./.github/workflows/build.yaml
with:
runner: ubuntu-latest
jdk: 21

# windows:
# name: Parallel Build - Windows
Expand All @@ -45,15 +44,13 @@ jobs:
uses: ./.github/workflows/build-examples.yaml
with:
runner: ubuntu-latest
jdk: 21

deploy:
if: github.repository_owner == 'oracle' && (github.ref_name == 'main' || startsWith(github.ref_name, 'v1') || startsWith(github.ref_name, 'v2') || startsWith(github.ref_name, 'v3'))
if: github.repository_owner == 'thegridman' && (github.ref_name == 'main' || startsWith(github.ref_name, 'v1') || startsWith(github.ref_name, 'v2') || startsWith(github.ref_name, 'v3'))
name: Deploy Snapshot
uses: ./.github/workflows/deploy-snapshots.yaml
with:
runner: ubuntu-latest
jdk: 21
needs:
- build
- examples
8 changes: 2 additions & 6 deletions .github/workflows/deploy-snapshots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ on:
workflow_call:
inputs:
runner:
required: true
type: string
jdk:
default: ubuntu-latest
required: true
type: string

Expand All @@ -30,8 +28,6 @@ env:

jobs:
build:
if: ${{ github.event.workflow_run.conclusion == 'success' }}

runs-on: ${{ inputs.runner }}

steps:
Expand All @@ -43,7 +39,7 @@ jobs:
uses: oracle-actions/setup-java@v1
with:
website: oracle.com
release: ${{ inputs.jdk }}
release: 21

- name: Cache Maven packages
uses: actions/cache@v4
Expand Down

0 comments on commit 42132d5

Please sign in to comment.