Skip to content

Commit 3b1bd7a

Browse files
committed
chore: use srz-zumix/setup-infer
1 parent b3c2c7a commit 3b1bd7a

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

.github/workflows/infer.yml

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,8 @@ jobs:
2020
java-version: 21
2121
distribution: 'temurin'
2222

23-
- name: Set up OCaml
24-
uses: ocaml/setup-ocaml@v3
25-
with:
26-
ocaml-compiler: 5
27-
28-
- name: Get current year/weak
29-
run: echo "year_week=$(date +'%Y_%U')" >> $GITHUB_ENV
30-
31-
- name: Cache infer build
32-
id: cache-infer
33-
uses: actions/cache@v4
34-
with:
35-
path: infer
36-
key: ${{ runner.os }}-infer-${{ env.year_week }}
37-
38-
- name: Build infer
39-
if: steps.cache-infer.outputs.cache-hit != 'true'
40-
run: |
41-
cd ..
42-
git clone https://github.com/facebook/infer.git
43-
cd infer
44-
git checkout 01aaa268f9d38723ba69c139e10f9e2a04b40b1c
45-
./build-infer.sh java
46-
cp -r infer ../Java
47-
48-
- name: Add infer to PATH
49-
run: |
50-
echo "infer/bin" >> $GITHUB_PATH
23+
- name: Set up infer
24+
uses: srz-zumix/setup-infer@v1
5125

5226
- name: Display infer version
5327
run: |

0 commit comments

Comments
 (0)