Skip to content

switch to uint64

switch to uint64 #1436

Workflow file for this run

name: DFTracer Build and Test
on:
pull_request:
branches: [ main, develop ]
push:
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, ubuntu-22.04]
dir: ["clone"]
perm: ["root", "user", "venv"]
exclude:
- dir: "clone"
perm: "user"
name: ${{ matrix.os }}-${{ matrix.dir }}-${{ matrix.perm }}
runs-on: ${{ matrix.os }}
env:
CC: gcc-10
CXX: g++-10
DIR: ${{ matrix.dir }}
PERM: ${{ matrix.perm }}
OS: ${{ matrix.os }}
steps:
- name: Push checkout
if: github.event_name == 'push'
uses: actions/checkout@v3
- name: PR checkout
if: github.event_name == 'pull_request'
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install additional packages
run: |
sudo apt-get update
sudo apt-get install ${CC} ${CXX} libtool-bin openmpi-bin libopenmpi-dev
sudo apt-get install python3 python3-pip python3-dev
sudo apt-get install gcovr clang-format
sudo pip install --upgrade pip
if [[ $PERM == 'venv' ]]; then
python -m venv ../venv
source ../venv/bin/activate
fi
- name: Build from ${{ matrix.dir }} on ${{ matrix.perm }}
run: |
export CMAKE_BUILD_TYPE=PROFILE
if [ $OS == 'ubuntu-22.04' ] && [ $DIR == 'clone' ] && [ $PERM == 'venv' ]; then
export DFTRACER_ENABLE_TESTS=On
fi
echo Install variables DFTRACER_ENABLE_TESTS $DFTRACER_ENABLE_TESTS
LOC=.[analyzer]
if [[ $PERM == 'user' ]]; then
export DFTRACER_LOGGER_USER=1
echo pip install --user ${LOC}
pip install -v ${LOC}
elif [[ $PERM == 'venv' ]]; then
source ../venv/bin/activate
pip install --upgrade pip
echo pip install ${LOC}
pip install ${LOC}
else
echo pip install ${LOC}
sudo pip install ${LOC}
fi
- name: Test ctest
if: matrix.os == 'ubuntu-22.04' && matrix.dir == 'clone' && matrix.perm == 'venv'
run: |
source ../venv/bin/activate
pip install -r test/py/requirements.txt
cd build/temp*/*pydftracer/
ctest -E dlio -VV
- name: Create Coverage
if: matrix.os == 'ubuntu-22.04' && matrix.dir == 'clone' && matrix.perm == 'venv'
run: |
mkdir coverage
FILE=$PWD/coverage/coverage.json
cd build
COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS }} gcovr -r ../ . --coveralls $FILE -e ../test/ -e ../src/example
if [ -e '$FILE' ]; then
sed -i'' -e 's/"service_name": "github-actions-ci"/"service_name": "github"/' '$FILE'
fi
cat $FILE
curl -v -F json_file=@$FILE https://coveralls.io/api/v1/jobs