-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1.35 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on: [push]
jobs:
build:
runs-on: [ubuntu-22.04]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.9.4
- name: Build with Maven
run: mvn --batch-mode --update-snapshots package
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: org.emoflon.ilp.updatesite
path: org.emoflon.ilp.updatesite/target/org.emoflon.ilp.updatesite-*.zip
test:
runs-on: [ubuntu-22.04]
needs: [build]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
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/setup-maven@v4.5
with:
maven-version: 3.9.4
- name: Test with Maven
run: mvn --batch-mode --update-snapshots clean -Dtest=BasicTest,GlpkTest,SolverTest -DfailIfNoTests=false verify