-
Notifications
You must be signed in to change notification settings - Fork 38
54 lines (51 loc) · 1.43 KB
/
asan.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
name: asan check
on:
workflow_dispatch:
inputs:
ref:
required: false
jobs:
asan:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
check:
- valgrind-check
- debug-check
- sanitizer-check
scope:
- all
- proper
steps:
- name: checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.ref }}
- name: asan build
run: |
otp_prebuilds=otp-26.2.5.3-ubuntu-22.04.tar.gz
wget https://github.com/qzhuyan/kerl/releases/download/test2/${otp_prebuilds}
tar zxvf ${otp_prebuilds} -C /
ln -s /home/runner/OTP/otp-26.2.5.3/ /home/runner/OTP/default
echo ". /home/runner/OTP/default/activate" >> ~/.bashrc
- name: download rebar3
run: |
wget https://s3.amazonaws.com/rebar3/rebar3
chmod a+x rebar3
mkdir -p $HOME/bin/
mv rebar3 $HOME/bin/
- name: run check
run: |
export PATH=$PATH:$HOME/bin/
. /home/runner/OTP/default/activate
if [[ "valgrind-check" == ${{ matrix.check }} ]]; then
sudo apt install valgrind
fi
tools/run/bin/${{ matrix.check }} ${{ matrix.scope }}
- name: Archive logs
uses: actions/upload-artifact@v3
with:
name: logs
path: .*_logs
retention-days: 3