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 9485aaf commit 272d441
Showing 1 changed file with 32 additions and 9 deletions.
41 changes: 32 additions & 9 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,39 @@ on:

jobs:
build:

runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck

- 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

0 comments on commit 272d441

Please sign in to comment.