Skip to content

ci: use correct relative path #17

ci: use correct relative path

ci: use correct relative path #17

Workflow file for this run

name: Backend
on: [pull_request, push]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Conan
uses: turtlebrowser/get-conan@v1.0
- name: Create default profile
working-directory: ./backend
run: conan profile detect
# - name: Update profile
# working-directory: ./backend
# run: conan profile update settings.compiler.libcxx=libstdc++11 default
- name: Install dependencies
working-directory: ${{github.workspace}}/backend
run: conan install . --output-folder=build --build=missing -s build_type=${{env.BUILD_TYPE}}
- name: Configure CMake
working-directory: ${{github.workspace}}/backend/build
run: cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
working-directory: ${{github.workspace}}/backend/build
# Build your program with the given configuration
run: cmake --build . --config ${{env.BUILD_TYPE}}
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Run tests
working-directory: ./backend
run: ./backend/build/test/pdl_test