# Template for setting up the Ubuntu build environment and building Xournal++ on # Ubuntu parameters: build_type: 'Debug' cmake_flags: '' cmake_commands: '' steps: - bash: | mkdir build displayName: 'Create build directory' - bash: | export CXX=g++-8 export CC=gcc-8 cmake -GNinja .. -DCMAKE_BUILD_TYPE=${{ parameters.build_type}} ${{ parameters.cmake_flags }} # Make sure pot is up to date with sources (maybe translation pipeline is currently running) cmake --build . --target pot cmake --build . --target translations # Build Xournal++ cmake --build . ${{ parameters.cmake_commands}} workingDirectory: ./build displayName: 'Build Xournal++'