Skip to content

Commit e21e020

Browse files
authored
Support of GitHub actions for automatic checking (javapathfinder#9)
1 parent f26c838 commit e21e020

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/main.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: build
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest]
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
- name: Set up JDK 11
19+
uses: actions/setup-java@v2
20+
with:
21+
java-version: 11
22+
distribution: "adopt"
23+
24+
- name: build jpf-core
25+
run:
26+
cd $HOME/work/jpf-nhandler;
27+
git clone https://github.com/javapathfinder/jpf-core.git;
28+
cd jpf-core;
29+
./gradlew build
30+
31+
- name: create site.properties file
32+
run:
33+
mkdir $HOME/.jpf;
34+
echo "jpf-core = ${HOME}/work/jpf-nhandler/jpf-core" >> $HOME/.jpf/site.properties;
35+
echo "jpf-numeric = ${HOME}/work/jpf-nhandler/jpf-numeric" >> $HOME/.jpf/site.properties;
36+
echo "jpf-aprop = ${HOME}/work/jpf-nhandler/jpf-aprop" >> $HOME/.jpf/site.properties;
37+
echo "extensions=${HOME}/work/jpf-nhandler/jpf-core,${HOME}/work/jpf-nhandler/jpf-aprop" >> $HOME/.jpf/site.properties;
38+
echo "jpf-nhandler = ${HOME}/work/jpf-nhandler/jpf-nhandler" >> $HOME/.jpf/site.properties
39+
40+
- name: Build and test jpf-nhandler
41+
run:
42+
./gradlew clean check

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ onthefly/
77
*~
88
*.DS_Store
99
*.swp
10+
.idea

0 commit comments

Comments
 (0)