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

Use SDKMan to setup GitHub Actions #1750

Merged
merged 1 commit into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 19 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2021, 2022 Eclipse contributors
# Copyright (c) 2021, 2024 Eclipse contributors
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -8,8 +8,7 @@
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Alexander Fedorov (ArSysOp) - initial API and implementation
# Matthias Mailänder - adapted for OpenChrom
# Matthias Mailänder - initial setup
###############################################################################

name: Continuous Integration
Expand All @@ -22,19 +21,26 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest

steps:

- name: Checkout ChemClipse
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3

- uses: sdkman/sdkman-action@main
name: Setup Temurin
id: temurin
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
candidate: java
version: 17.0.11-tem

- uses: sdkman/sdkman-action@main
name: Setup Maven
id: maven
with:
maven-version: 3.9.2
candidate: maven
version: 3.9.6

- name: Build with Maven
run: mvn -f chemclipse/releng/org.eclipse.chemclipse.aggregator/pom.xml -T 1C clean verify --batch-mode --no-transfer-progress
run: |
source $HOME/.sdkman/bin/sdkman-init.sh
mvn -f chemclipse/releng/org.eclipse.chemclipse.aggregator/pom.xml -T 1C clean verify --batch-mode --no-transfer-progress