Skip to content

Commit eadedd8

Browse files
committed
chore: use srz-zumix/setup-infer
1 parent 63ce6b8 commit eadedd8

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

.github/workflows/infer.yml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +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-
./build-infer.sh java
45-
cp -r infer ../Java
46-
47-
- name: Add infer to PATH
48-
run: |
49-
echo "infer/bin" >> $GITHUB_PATH
23+
- name: Set up infer
24+
uses: srz-zumix/setup-infer@v1
5025

5126
- name: Display infer version
5227
run: |

0 commit comments

Comments
 (0)