Update ci_basic.yaml #11
Workflow file for this run
This file contains 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
name: Basic CI ubuntu | |
on: [push, pull_request, workflow_dispatch] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
BUILD_PATH: ${{github.workspace}}/communicator/build | |
SOURCE: ${{github.workspace}}/communicator | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 # Installs Qt. | |
with: | |
version: '6.2.1' # The version of Qt to install. | |
- name: Setup cmake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: '3.22.1' | |
- name: Configure CMake | |
run: cmake -B ${{env.BUILD_PATH}} -S ${{env.SOURCE}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
# Build your program with the given configuration | |
run: cmake --build ${{env.BUILD_PATH}} --config ${{env.BUILD_TYPE}} | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y llvm cppcheck | |
sudo apt-get install -y iwyu | |
- name: Pre-commit actions | |
uses: pre-commit/[email protected] | |
# TODO uncomment when tests are added | |
# - name: Test | |
# working-directory: ${{env.BUILD_PATH}} | |
# run: ctest -C ${{env.BUILD_TYPE}} | |