-
Notifications
You must be signed in to change notification settings - Fork 19.5k
60 lines (50 loc) · 1.27 KB
/
infer.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
48
49
50
51
52
53
54
55
56
57
58
59
60
---
name: Infer
'on':
workflow_dispatch:
push:
branches:
- master
pull_request:
jobs:
run_infer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
- name: Set up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 5
- name: Get current year/weak
run: echo "year_week=$(date +'%Y_%U')" >> $GITHUB_ENV
- name: Cache infer build
id: cache-infer
uses: actions/cache@v4
with:
path: infer
key: ${{ runner.os }}-infer-${{ env.year_week }}
- name: Build infer
if: steps.cache-infer.outputs.cache-hit != 'true'
run: |
cd ..
git clone https://github.com/facebook/infer.git
cd infer
./build-infer.sh java
cp -r infer ../Java
- name: Add infer to PATH
run: |
echo "infer/bin" >> $GITHUB_PATH
- name: Display infer version
run: |
which infer
infer --version
- name: Run infer
run: |
mvn clean
infer --fail-on-issue --print-logs --no-progress-bar -- mvn test
...