Update c-cpp.yml #2
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: C/C++ CI Ubuntu 22.04 | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential cmake git pkg-config libgtk-3-dev \ | |
libavcodec-dev libavformat-dev libswscale-dev \ | |
libv4l-dev libxvidcore-dev libx264-dev libjpeg-dev \ | |
libpng-dev libtiff-dev gfortran openexr \ | |
libatlas-base-dev python3-dev python3-numpy libtbb2 libtbb-dev \ | |
libsqlite3-dev g++ g++-multilib doxygen zlib1g-dev libunwind-dev libsnappy-dev liblz4-dev | |
- name: Configure | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../install .. | |
- name: Build | |
run: | | |
cd build | |
make -j$(nproc) | |
- name: Package | |
run: | | |
cd install | |
tar -czvf dynamorio-${{ github.sha }}.tar.gz * | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: dynamorio-${{ github.run_id }} | |
path: install/dynamorio-${{ github.sha }}.tar.gz |