Skip to content

Commit

Permalink
Update mgmt-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoayyed authored Feb 4, 2024
1 parent b012564 commit 6ec95b6
Showing 1 changed file with 15 additions and 50 deletions.
65 changes: 15 additions & 50 deletions .github/workflows/mgmt-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,43 +51,31 @@ jobs:
with:
java-version: ${{ env.JDK_CURRENT }}
distribution: ${{ env.JDK_DISTRIBUTION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Initialize
run: ls ./ci && chmod -R 777 ./ci/*.sh && ./ci/init-build.sh
- uses: actions/checkout@v4
- name: Download Dependencies
run: ./ci/download-dependencies.sh
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-

##########################################################################

build:
needs: [cache]
strategy:
fail-fast: false
matrix:
os: [macos-latest]
runs-on: ${{ matrix.os }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ env.JDK_CURRENT }}
distribution: ${{ env.JDK_DISTRIBUTION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Initialize
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh
shell: bash
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./ci/build.sh

Expand All @@ -104,14 +92,10 @@ jobs:
with:
java-version: ${{ env.JDK_CURRENT }}
distribution: ${{ env.JDK_DISTRIBUTION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Initialize
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run Static Analysis
run: ./ci/analyze-style.sh

Expand All @@ -127,14 +111,10 @@ jobs:
with:
java-version: ${{ env.JDK_CURRENT }}
distribution: ${{ env.JDK_DISTRIBUTION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Initialize
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Validate Javadocs
run: ./ci/build-javadocs.sh

Expand All @@ -151,14 +131,10 @@ jobs:
with:
java-version: ${{ env.JDK_CURRENT }}
distribution: ${{ env.JDK_DISTRIBUTION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Initialize
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Publish SNAPSHOTs
if: ${{ env.SONATYPE_USER != null && env.SONATYPE_PWD != null }}
run: ./ci/publish-snapshots-release.sh
Expand All @@ -176,14 +152,10 @@ jobs:
with:
java-version: ${{ env.JDK_CURRENT }}
distribution: ${{ env.JDK_DISTRIBUTION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Initialize
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Publish Documentation
run: ./ci/push-docs-ghpages.sh ${DOCS_BRANCH}

Expand All @@ -200,16 +172,9 @@ jobs:
with:
java-version: ${{ env.JDK_CURRENT }}
distribution: ${{ env.JDK_DISTRIBUTION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Initialize
run: chmod -R 777 ./ci/*.sh && ./ci/init-build.sh
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run Tests
run: ./ci/tests/run-tests-simple.sh

##########################################################################

0 comments on commit 6ec95b6

Please sign in to comment.