Skip to content

Merge branch 'basic_github_actions' of https://github.com/coders-scho… #6

Merge branch 'basic_github_actions' of https://github.com/coders-scho…

Merge branch 'basic_github_actions' of https://github.com/coders-scho… #6

Workflow file for this run

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.

Check failure on line 22 in .github/workflows/ci_basic.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci_basic.yaml

Invalid workflow file

You have an error in your yaml syntax on line 22
- 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
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}}