Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
# Run it at a specific time so that we don't get emails all day long
time: "00:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: "*"
# GitHub actions are using git tags (v1 = v1.2 = v1.2.3) which should be compatible until a major change is performed
update-types:
- "version-update:semver-minor"
- "version-update:semver-patch"
- package-ecosystem: maven
directory: "/"
schedule:
interval: daily
# Run it at a specific time so that we don't get emails all day long
time: "00:00"
open-pull-requests-limit: 10
100 changes: 100 additions & 0 deletions .github/workflows/checkBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: Check Build

on:
workflow_dispatch:
push:
branches: [ develop ]
paths-ignore:
- '**.md'
pull_request:
branches: [ develop ]
paths-ignore:
- '**.md'

jobs:
build_lts:
runs-on: ubuntu-latest

strategy:
matrix:
java: [11] #, 17-ea]
java-package: [jdk]
distribution: [adopt]
include:
# When building Java 8 we need JavaFX on JDK basis
- java: 8
java-package: jdk+fx
distribution: zulu

steps:
- uses: actions/checkout@v2

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

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Build with Maven
run: mvn -B clean verify -P java${{ matrix.java }}

- name: Check for uncommited changes
run: |
if [[ "$(git status --porcelain)" != "" ]]; then
echo ----------------------------------------
echo git status
echo ----------------------------------------
git status
echo ----------------------------------------
echo git diff
echo ----------------------------------------
git diff
echo ----------------------------------------
echo Troubleshooting
echo ----------------------------------------
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && mvn -B clean verify"
exit 1
fi

- uses: actions/upload-artifact@v2
with:
name: jars-lts-${{ matrix.java }}
path: target/*.jar

build_xdev_ide:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '8'
java-package: jdk+fx

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Build with Maven
run: mvn -B clean verify -Pjava8,xdev-ide

- uses: actions/upload-artifact@v2
with:
name: jars-xdev-ide
path: target/*.jar
Loading