-
Notifications
You must be signed in to change notification settings - Fork 282
68 lines (53 loc) · 1.66 KB
/
full.yml
File metadata and controls
68 lines (53 loc) · 1.66 KB
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
65
66
67
68
# tests all packages, including bap-extra
name: full
run-name: Testing everything in ${{ github.ref }}
on:
- pull_request
jobs:
build:
runs-on: ubuntu-latest
env:
BAP_LOG_DIR: $HOME/log
OPAMRETRES: 8
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ghidra
uses: ./.github/actions/install-ghidra
- name: Install Dejagnu
run: |
sudo apt-get update -y
sudo apt-get install dejagnu -y
- name: Install OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4.14.x
dune-cache: true
opam-disable-sandboxing: true
opam-repositories: |
default: git+https://github.com/ocaml/opam-repository.git
bap: git+https://github.com/BinaryAnalysisPlatform/opam-repository#testing
- name: Install BAP Dependencies
run: opam install . --deps-only
- name: Configure BAP
run: opam exec -- ocaml tools/configure.ml --with-llvm-config=$(opam var conf-bap-llvm:config)
- name: Build BAP
run: opam exec -- dune build
- name: Install BAP
run: opam exec -- dune install
- name: Run Unit Tests
run: opam exec -- dune test --display=short
- name: Run Functional Tests
run: opam exec -- make check
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: bap-log-full
path: ~/.local/state/bap
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: fun-tests-log-full
path: |
testsuite/*.log
testsuite/logs