-
-
Notifications
You must be signed in to change notification settings - Fork 627
77 lines (77 loc) · 2.7 KB
/
code-check.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
65
66
67
68
69
70
71
72
73
74
75
76
77
name: code-check
on:
workflow_dispatch:
inputs:
branch:
description: 'LIEF branch'
default: main
required: false
type: string
what:
description: 'clang-tidy action'
default: latest
required: false
type: string
job:
description: 'Job (e.g. coverage)'
default: "all"
required: false
type: string
push:
branches:
- main
jobs:
coverage:
runs-on: ubuntu-latest
container:
image: liefproject/code-check
env:
LIEF_S3_KEY: ${{ secrets.LIEF_S3_KEY }}
LIEF_S3_SECRET: ${{ secrets.LIEF_S3_SECRET }}
steps:
- uses: actions/checkout@v4
with:
repository: lief-project/code-check
token: ${{ secrets.LIEF_CLONE_TOKEN }}
- name: Running LIEF coverage [workflow dispatch]
if: ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.job == 'all' || github.event.inputs.job == 'coverage') }}
run: ./lief-coverage --debug
- name: Running LIEF coverage [regular]
if: ${{ github.event_name != 'workflow_dispatch' }}
run: ./lief-coverage --debug
clang-tidy:
runs-on: ubuntu-latest
container:
image: liefproject/code-check
env:
LIEF_S3_KEY: ${{ secrets.LIEF_S3_KEY }}
LIEF_S3_SECRET: ${{ secrets.LIEF_S3_SECRET }}
steps:
- uses: actions/checkout@v4
with:
repository: lief-project/code-check
token: ${{ secrets.LIEF_CLONE_TOKEN }}
- name: Running LIEF coverage [workflow dispatch]
if: ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.job == 'all' || github.event.inputs.job == 'clang-tidy') }}
run: ./lief-tidy --branch ${{ github.event.inputs.branch }} ${{ github.event.inputs.what }}
- name: Running LIEF coverage [regular]
if: "github.event.name != 'workflow_dispatch'"
run: ./lief-tidy latest
memory-profiler:
runs-on: ubuntu-latest
container:
image: liefproject/code-check
env:
LIEF_S3_KEY: ${{ secrets.LIEF_S3_KEY }}
LIEF_S3_SECRET: ${{ secrets.LIEF_S3_SECRET }}
steps:
- uses: actions/checkout@v4
with:
repository: lief-project/code-check
token: ${{ secrets.LIEF_CLONE_TOKEN }}
- name: Running LIEF memory profiler [workflow dispatch]
if: ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.job == 'all' || github.event.inputs.job == 'memprof') }}
run: ./lief-memory-profile --branch ${{ github.event.inputs.branch }}
- name: Running LIEF memory profiler [regular]
if: "github.event.name != 'workflow_dispatch'"
run: ./lief-memory-profile