Skip to content

Commit

Permalink
Merge pull request #180 from ate47/dev_package_into_release
Browse files Browse the repository at this point in the history
Update CI to Java 17 and add package for release
  • Loading branch information
D063520 authored Dec 1, 2022
2 parents d8d4b2a + a34bc8c commit 7a3de95
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/mvn-windows.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Java CI (Windows)
name: Test Java (Windows)

on: [push]

Expand All @@ -7,10 +7,10 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 15
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 15
java-version: 17
- name: Cache local Maven repository
uses: actions/cache@v2
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mvn.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Java CI
name: Test Java CI

on: [push]

Expand All @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 15
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 15
java-version: 17
- name: Cache local Maven repository
uses: actions/cache@v2
with:
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build package for release

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- 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: Package
run: mvn package -DskipTests -Dmaven.javadoc.skip=true
- name: Get files
run: cp hdt-java-package/target/hdt-java-package-*.tar.gz rdfhdt.tar.gz
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: rdfhdt.tar.gz
asset_name: rdfhdt.tar.gz
tag: ${{ github.ref }}
overwrite: true

0 comments on commit 7a3de95

Please sign in to comment.