Skip to content

fix ci.yml indentation #2

fix ci.yml indentation

fix ci.yml indentation #2

Workflow file for this run

name: ci
on:
release:
types: [published]
push:
tags:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:

Check failure on line 16 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 16, Col: 5): Unexpected value 'matrix' .github/workflows/ci.yml (Line: 27, Col: 9): 'run' is already defined
os:
- windows-2022
- ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Windows setup
if: runner.os == 'Windows'
run: winget install cmake
run: winget install llvm
run: winget install pip
run: winget install ninja
- name: Linux setup
if: runner.os == 'Ubuntu'
run: sudo apt-get install cmake
run: sudo apt-get install llvm
run: sudo apt-get install pip
run: sudo apt-get install ninja
- name: Install conan package manager
run: pip install conan
- name: Install conan packages
run: conan install . --output-folder=build-rel
- name: CMake config
run: cmake -S . -B build-rel -G Ninja -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
- name: CMake build
run: cmake --build build-rel
- name: CPack project
if: startsWith(github.ref, 'refs/tags')
working-directory: build-rel
run: cpack -G ZIP --config CPackConfig.cmake
- name: Publish release
if: startsWith(github.ref, 'refs/tags')
uses: softprops/action-gh-release@v1
with:
files: build-rel/*.zip