Merge pull request #487 from undertrox/fix-svg-colors #93
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
| # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
| name: Java CI with Maven | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| version: [17, 21] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK ${{ matrix.version }} | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: ${{ matrix.version }} | |
| distribution: 'adopt' | |
| cache: maven | |
| - name: Cache Maven packages | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-java${{ matrix.version }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-java${{ matrix.version }}-m2 | |
| - name: Build with Maven | |
| run: mvn -B package --file pom.xml | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ matrix.version == '21' }} | |
| with: | |
| name: oriedita-jar | |
| path: oriedita/target/oriedita-*.jar | |