WIP: don't merge me #5
This file contains hidden or 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: Package Jar for CapyMOA | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # TODO: Use newer java when precision issue is resolved https://github.com/Waikato/moa/issues/273 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '11' | |
| distribution: 'jetbrains' | |
| cache: maven | |
| - name: Unit Tests | |
| working-directory: ./moa | |
| run: mvn -B test | |
| - name: Package Jar | |
| working-directory: ./moa | |
| # Package as JAR while skipping tests, javadoc, and latex build | |
| run: mvn -B package -DskipTests -Dmaven.javadoc.skip=true -Dlatex.skipBuild=true | |
| # Upload jar file as artifact | |
| - name: Upload Jar | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: moa-jar | |
| path: ./moa/target/moa-*-jar-with-dependencies.jar | |
| if-no-files-found: error | |
| retention-days: 7 |