Skip to content

Update pom.xml

Update pom.xml #98

Workflow file for this run

# This workflow will build a Java project with Maven, 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-maven
# 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.
name: Build and Package Drifty
on:
push:
branches: [ "master" ]
paths-ignore:
- "Website/**"
- "*.md"
- "*.txt"
pull_request:
branches: [ "master" ]
paths-ignore:
- "Website/**"
- "*.md"
- "*.txt"
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
package-Drifty-for-Windows:
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up JDK 20
uses: actions/setup-java@v3
with:
java-version: '20.0.1'
distribution: 'oracle'
cache: maven
- name: Build with Maven
run: mvn compile
- name: Package Drifty CLI with JavaPackager Maven plugin
run: mvn javapackager:package@bundling-Drifty-CLI-for-windows
- name: Package Drifty GUI with JavaPackager Maven plugin
run: mvn javapackager:package@bundling-Drifty-GUI-for-windows
- name: Push generated artifacts
uses: actions/upload-artifact@v3
with:
name: Windows-Build-Files
path: target
package-Drifty-for-MacOS:
runs-on: "macos-latest"
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up JDK 20
uses: actions/setup-java@v3
with:
java-version: '20.0.1'
distribution: 'oracle'
cache: maven
- name: Build with Maven
run: mvn compile
- name: Package Drifty CLI with JavaPackager Maven plugin
run: mvn javapackager:package@bundling-Drifty-CLI-for-mac
- name: Package Drifty GUI with JavaPackager Maven plugin
run: mvn javapackager:package@bundling-Drifty-GUI-for-mac
- name: Push generated artifacts
uses: actions/upload-artifact@v3
with:
name: MacOS-Build-Files
path: target
package-Drifty-for-linux:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up JDK 20
uses: actions/setup-java@v3
with:
java-version: '20.0.1'
distribution: 'oracle'
cache: maven
- name: Build with Maven
run: mvn compile
- name: Package Drifty CLI with JavaPackager Maven plugin
run: mvn javapackager:package@bundling-Drifty-CLI-for-linux
- name: Package Drifty GUI with JavaPackager Maven plugin
run: mvn javapackager:package@bundling-Drifty-GUI-for-linux
- name: Push generated artifacts
uses: actions/upload-artifact@v3
with:
name: Linux-Build-Files
path: target