Skip to content

Combine Workflows

Combine Workflows #1

Workflow file for this run

name: Build
on:
push:
branches:
- main
env:
- BUILD_TYPE: Release

Check failure on line 9 in .github/workflows/c-cpp-build.yaml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/c-cpp-build.yaml (Line: 9, Col: 3): A sequence was not expected
- BUILD_GEN: "Ninja"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
- name: Install Ninja on Linux
run: sudo apt-get install ninja-build
if: matrix.os == 'ubuntu-latest'
- name: Install Ninja on Windows
run: choco install ninja
if: matrix.os == 'windows-latest'
- name: Build
run: cmake -S . -B build -G "${{ env.BUILD_GEN }}" && cmake --build build --config ${{ env.BUILD_TYPE }}