asan check #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 sanitizer-check | |
run: | | |
export PATH=$PATH:$HOME/bin/ | |
. /home/runner/OTP/default/activate | |
tools/run/bin/${{ matrix.check }} ${{ matrix.scope }} | |
- name: Archive logs | |
uses: actions/upload-artifact@v3 | |
with: | |
name: logs | |
path: .*_logs | |
retention-days: 3 |