Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/arces-wot/sepa.git
Browse files Browse the repository at this point in the history
  • Loading branch information
lroffia committed Dec 6, 2024
2 parents 9c81dfc + 5013744 commit 3386081
Showing 1 changed file with 18 additions and 40 deletions.
58 changes: 18 additions & 40 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,54 +17,32 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 13
uses: actions/setup-java@v2
- uses: actions/checkout@v4
- name: Set up JDK 23
uses: actions/setup-java@v4
with:
java-version: '13'
java-version: '23'
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn --batch-mode --update-snapshots compile

test:
runs-on: ubuntu-latest
needs: build

services:
blazegraph:
image: nawer/blazegraph:2.1.5
ports:
- 9999:9999

needs: build
steps:
- uses: actions/checkout@v2
- name: Set up JDK 13
uses: actions/setup-java@v2
- uses: actions/checkout@v4
- name: Set up JDK 23
uses: actions/setup-java@v4
with:
java-version: '13'
java-version: '23'
distribution: 'adopt'
cache: maven
- name: wait for blazegraph
uses: nev7n/wait_for_response@v1
with:
url: 'http://localhost:9999/blazegraph/namespace/kb/sparql'
responseCode: 200
timeout: 20000
interval: 500
- name: package engine and launch
run: |
mvn package
cd engine/target
mv endpoints/endpoint-blazegraph.jpar endpoint.jpar
echo launching engine with this configuration
echo SPARQL ENDPOINT
cat endpoint.jpar
echo ENGINE PROPERTIES
cat engine.jpar
echo LOG4J
cat log4j2-debug.xml
java -Dlog4j.configurationFile=./log4j2-debug.xml -jar engine-v0.15.0.jar -engine engine.jpar -endpoint endpoint.jpar > log.txt &
java -Dlog4j.configurationFile=./log4j2-debug.xml -jar engine-1.0.0-SNAPSHOT.jar > log.txt &
shell: bash
- name: wait for SEPA engine
uses: nev7n/wait_for_response@v1
Expand All @@ -76,7 +54,7 @@ jobs:
- name: verify
run: mvn verify -e -Dlog4j2.level=trace
- name: publish Engine log
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: always()
with:
name: engine-log
Expand All @@ -92,10 +70,10 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '13'
java-version: '23'
distribution: 'adopt'
cache: maven
- name: Publish package
Expand All @@ -110,16 +88,16 @@ jobs:
- build
- test
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v4
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v4
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}
- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
push: true
tags: vaimee/sepa:${{github.ref_name}},vaimee/sepa:latest

0 comments on commit 3386081

Please sign in to comment.