Skip to content

Commit

Permalink
Github Actions enhancements (#29)
Browse files Browse the repository at this point in the history
* Create executable creation workflow

* Ensure Javadoc is also build on PR

* Update Build actions
  • Loading branch information
TheRisenPhoenix authored Feb 14, 2024
1 parent 6f88b09 commit 4484a19
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 14 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-exe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy Java executable

on:
workflow_dispatch:

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- name: Setup Environment
uses: actions/setup-java@v4
with:
java-version: 20
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build exe
run: ./gradlew createExe
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: IGTPrototypingTool
path: build/launch4j/
4 changes: 4 additions & 0 deletions .github/workflows/deploy-javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- master
pull_request:
branches:
- master

permissions:
contents: write
pages: write
Expand Down
24 changes: 10 additions & 14 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
Expand All @@ -26,13 +19,16 @@ jobs:
java-version: [ '11', '17', '20' ]

steps:
- uses: actions/checkout@v3
- name: Java ${{ matrix.Java }} build
uses: actions/setup-java@v3
- uses: actions/checkout@v4

- name: Java ${{ matrix.Java }} setup
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: build

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Execute Gradle build
run: ./gradlew build

0 comments on commit 4484a19

Please sign in to comment.