Skip to content

Commit

Permalink
Update c-cpp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jelacicedin authored Apr 22, 2024
1 parent 95295af commit 2dc5754
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,34 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Setup dependencies
submodules: 'recursive' # Ensure submodules are checked out

- name: Install 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
sudo apt-get install -y cmake build-essential 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 elfutils libdw-dev libiberty-dev
- name: Configure
- name: Configure and Build
run: |
mkdir build
cd build
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../install ..
- name: Build
run: |
cd build
make -j$(nproc)
make install
- name: Package
run: |
cd install
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
path: dynamorio-${{ github.sha }}.tar.gz

0 comments on commit 2dc5754

Please sign in to comment.