forked from BinaryAnalysisPlatform/bap
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (51 loc) · 1.5 KB
/
build-dev-repo.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
61
62
63
64
name: build-dev-repo
on:
- pull_request
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
ocaml-version:
- 4.11.1
- 4.08.1
runs-on: ${{ matrix.os }}
env:
TMPDIR: /tmp
XDG_CACHE_HOME: /tmp/cache
BAP_LOG_DIR: /tmp/bap-log
OPAMJOBS: 2
OPAMRETRES: 8
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use OCaml ${{ matrix.ocaml-version }}
uses: avsm/setup-ocaml@v1
with:
ocaml-version: ${{ matrix.ocaml-version }}
- name: Add the testing Repository
run: opam repo add bap git://github.com/BinaryAnalysisPlatform/opam-repository#testing
- name: Pin BAP
run: opam pin add bap . --no-action
- name: Configure Homebrew LLVM
if: matrix.os == 'macos-latest'
run: |
rm -rf /usr/local/bin/2to3
brew unlink gcc@8
brew unlink gcc@9
brew update
brew upgrade
echo 'LLVM_CONFIG=/usr/local/opt/llvm@9/bin/llvm-config' >> $GITHUB_ENV
- name: Install system dependencies
run: opam depext -u bap
- name: Install opam dependencies
run: opam install bap --deps-only
- name: Build and Install BAP
run: opam install bap
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: opam-log-${{ matrix.os }}-${{ matrix.ocaml-version }}
path: ~/.opam/log