github: maven #171
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI with Maven on macOS | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install Java and Maven | |
run: | | |
brew update | |
brew install openjdk@11 | |
brew install maven | |
sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk | |
export JAVA_HOME=$(/usr/libexec/java_home -v 11) | |
export PATH="$JAVA_HOME/bin:$PATH" | |
java -version | |
mvn -version | |
- name: Build and install parent POM | |
run: | | |
mvn clean install | |
- name: Build submodules | |
run: | | |
mvn clean install |