Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI to Java 17 and add package for release #180

Merged
merged 1 commit into from
Dec 1, 2022
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
Update CI to Java 17 and add package for release
  • Loading branch information
ate47 committed Dec 1, 2022
commit a34bc8c70f3019d7130c72293aac61f6a71a66b1
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