fix ci.yml indentation #2
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: 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 GitHub Actions / ciInvalid workflow file
|
||
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 | ||