Skip to content

Commit

Permalink
build workflow edited
Browse files Browse the repository at this point in the history
  • Loading branch information
aseemsavio committed Sep 10, 2023
1 parent fe81f5b commit c549bb1
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,17 @@ on:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
java-version:
- 8
- 11
- 17
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK ${{ matrix.java-version }}
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}

java-version: '17'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build

- name: Archive build artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts-${{ matrix.java-version }}
path: build/libs/*.jar # Adjust to your build output directory and file(s)

- name: Publish Gradle Build Status
uses: badboy/github-action-publish-gradle-status@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew build

0 comments on commit c549bb1

Please sign in to comment.