Skip to content

Commit

Permalink
Merge branch 'split_repo_into_scenarios_core' of https://github.com/m…
Browse files Browse the repository at this point in the history
…atsim-org/matsim-episim-libs into split_repo_into_scenarios_core
  • Loading branch information
jakobrehmann committed Jan 28, 2025
2 parents 872e6a3 + c9a3801 commit 511d7c4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 22 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,26 @@ jobs:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
java: [11, 13]
module:
- org.matsim.run
- org.matsim.episim

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
java-version: 11
distribution: 'temurin'
architecture: x64

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

- name: Test module
run: mvn -Dtest=${{matrix.module}}.** test --batch-mode -Dmatsim.preferLocalDtds=true -Dmaven.javadoc.skip -e
run: mvn test --batch-mode -Dmatsim.preferLocalDtds=true -Dmaven.javadoc.skip -e

- name: Generate reports
run: mvn site:site --batch-mode

- name: Archive reports
uses: actions/upload-artifact@v4
with:
name: maven-site-${{ matrix.java }}-${{ matrix.module }}
name: maven-site
path: target/site/

env:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
architecture: x64

- name: Publish package
run: mvn --batch-mode deploy
env:
Expand Down
4 changes: 4 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
jdk:
- openjdk11
before_install:
- sdk install maven

0 comments on commit 511d7c4

Please sign in to comment.