Merge pull request #49 from eMoflon/feature/upgrade-actions-versions #50
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: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: [ubuntu-22.04] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set up Maven | |
uses: stCarolas/[email protected] | |
with: | |
maven-version: 3.9.6 | |
- name: Build with Maven | |
run: mvn --batch-mode --update-snapshots package | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: org.emoflon.ilp.updatesite | |
path: org.emoflon.ilp.updatesite/target/org.emoflon.ilp.updatesite-*.zip | |
doc: | |
runs-on: [ubuntu-22.04] | |
needs: [build] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set up Maven | |
uses: stCarolas/[email protected] | |
with: | |
maven-version: 3.9.6 | |
- name: Create JavaDoc with Maven | |
run: mvn --batch-mode --update-snapshots site | |
- name: Upload doc artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: javadoc | |
path: org.emoflon.ilp/target/site | |
test: | |
runs-on: [ubuntu-22.04] | |
needs: [build] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Install GLPK | |
run: | | |
sudo apt-get install -yq glpk-utils libglpk-dev glpk-doc libglpk-java libglpk40 | |
sudo cp /usr/lib/x86_64-linux-gnu/jni/libglpk_java.* /usr/lib/ | |
- name: Set up Maven | |
uses: stCarolas/[email protected] | |
with: | |
maven-version: 3.9.4 | |
- name: Test with Maven | |
run: mvn --batch-mode --update-snapshots clean -Dtest=BasicTest,GlpkTest,SolverTest -DfailIfNoTests=false verify |