Refactor/pipeline builder #49
Workflow file for this run
This file contains hidden or 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
# .github/workflows/main.yml | |
name: CMake CI for Linux GCC with dependencies | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
env: | |
CC: gcc-13 | |
CXX: g++-13 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
lfs: true | |
- name: Install GCC 13 | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y gcc-13 g++-13 | |
- name: Set reusable strings | |
id: strings | |
shell: bash | |
run: | | |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" | |
echo "install-dir=${{ github.workspace }}/install" >> "$GITHUB_OUTPUT" | |
- name: Set up test env | |
run: | | |
echo "LD_LIBRARY_PATH=${{ github.workspace }}/install/lib:\ | |
${{ github.workspace }}/build/3rdparty/logger/x86_64/lib:\ | |
${{ github.workspace }}/install/lib:\ | |
$LD_LIBRARY_PATH" >> $GITHUB_ENV | |
- name: Configure CMake | |
run: > | |
cmake -B ${{ steps.strings.outputs.build-output-dir }} | |
-DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.install-dir }} | |
-DCMAKE_BUILD_TYPE=Release | |
-DBUILD_AI_PIPE_TESTS=ON | |
-DBUILD_AI_PIPE_EXAMPLES=ON | |
-DBUILD_AI_PIPE_BENCHMARKS=ON | |
-S ${{ github.workspace }} | |
- name: Build | |
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release | |
- name: Install project | |
run: cmake --install ${{ steps.strings.outputs.build-output-dir }} | |
- name: Run GTests | |
working-directory: ${{ steps.strings.outputs.install-dir }} | |
run: ./tests/ai_pipe_tests --gtest_filter=*.* |