1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-16 02:44:10 +02:00

Merge pull request #6 from ripmeapp2/gradle

version now with git sha, build after commit with gradle
This commit is contained in:
Stefan Aladzic
2021-02-24 19:00:44 +01:00
committed by GitHub
3 changed files with 55 additions and 4 deletions

44
.github/workflows/gradle.yml vendored Normal file
View File

@@ -0,0 +1,44 @@
name: CI + release
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
java: [1.8]
include: # test newest java on one os only, upload from ubuntu java8
- os: ubuntu-latest
java: 1.15
- os: ubuntu-latest
upload: true
steps:
- uses: actions/checkout@v1
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Gradle packages
# speed up the build by caching dependencies, downloaded versions
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew build
- name: upload jar as asset
if: matrix.upload
uses: actions/upload-artifact@v2
with:
name: zipped-ripme-jar
path: build/libs/*.jar
# vim:set ts=2 sw=2 et:

View File

@@ -1,6 +1,6 @@
name: Java CI
on: [push, pull_request]
on: workflow_dispatch
jobs:
build:

View File

@@ -1,4 +1,5 @@
plugins {
id("fr.brouillard.oss.gradle.jgitver") version "0.9.1"
id("jacoco")
id("java")
id("maven-publish")
@@ -29,6 +30,12 @@ group = "com.rarchives.ripme"
version = "1.7.94"
description = "ripme"
jgitver {
gitCommitIDLength = 8
nonQualifierBranches = "main,master"
useGitCommitID = true
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8