trace-cruncher CI #9
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: trace-cruncher CI | |
on: | |
push: | |
branches: [tracecruncher, yordan_devel] | |
schedule: | |
- cron: '0 15 * * THU' | |
workflow_dispatch: | |
jobs: | |
build-test-snapshot: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Dependencies | |
working-directory: ${{runner.workspace}}/trace-cruncher | |
shell: bash | |
run: | | |
sudo apt-get update | |
sudo apt-get install build-essential git cmake libjson-c-dev binutils-dev -y | |
sudo apt-get install libpython3-dev cython3 python3-numpy -y | |
sudo apt install python3-pip | |
sudo pip3 install pkgconfig GitPython psutil | |
cd ./scripts/git-snapshot/ | |
bash ./git-snapshot.sh -f ./repos | |
cd libtraceevent | |
make | |
sudo make install | |
cd .. | |
cd libtracefs | |
make | |
sudo make install | |
cd .. | |
cd trace-cmd | |
make | |
sudo make install_libs | |
cd .. | |
cd kernel-shark/build | |
cmake .. | |
make | |
sudo make install | |
cd ../.. | |
- name: Build | |
working-directory: ${{runner.workspace}}/trace-cruncher | |
shell: bash | |
# Build and install. | |
run: | | |
make | |
sudo make install | |
- name: Test | |
working-directory: ${{runner.workspace}}/trace-cruncher/tests | |
shell: bash | |
# Execute tests defined by the CMake configuration. | |
run: sudo python3 -m unittest discover . | |
build-test-latest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Dependencies | |
working-directory: ${{runner.workspace}}/trace-cruncher | |
shell: bash | |
run: | | |
sudo apt-get update | |
sudo apt-get install build-essential git cmake libjson-c-dev binutils-dev -y | |
sudo apt-get install libpython3-dev cython3 python3-numpy -y | |
sudo apt install python3-pip | |
sudo pip3 install pkgconfig GitPython psutil | |
cd ./scripts/git-snapshot/ | |
bash ./git-snapshot.sh -l -f ./repos | |
cd libtraceevent | |
make | |
sudo make install | |
cd .. | |
cd libtracefs | |
make | |
sudo make install | |
cd .. | |
cd trace-cmd | |
make | |
sudo make install_libs | |
cd .. | |
cd kernel-shark/build | |
cmake .. | |
make | |
sudo make install | |
cd ../.. | |
- name: Build | |
working-directory: ${{runner.workspace}}/trace-cruncher | |
shell: bash | |
# Build and install. | |
run: | | |
make | |
sudo make install | |
- name: Test | |
working-directory: ${{runner.workspace}}/trace-cruncher/tests | |
shell: bash | |
# Execute tests defined by the CMake configuration. | |
run: sudo python3 -m unittest discover . | |