Skip to content

Have CI build under windows #28

Have CI build under windows

Have CI build under windows #28

Workflow file for this run

name: Build LibMultiSense
on:
push:
branches:
- master
release:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref_name }}-build
cancel-in-progress: ${{ github.ref_name != 'main' }}
steps:
- id: setup
run: |
sudo apt-get install libgtest-dev -y
- uses: actions/checkout@v4
- id: build-release
run: |
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=install-release
cmake --build build -j "$(nproc)"
make -C build test
cmake --install build
- id: build-debug
run: |
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=install-debug
cmake --build build -j "$(nproc)"
make -C build test
cmake --install build
buildwindows:
name: build for windows
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- id: build-release
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
run: cmake --build ${{github.workspace}}/build --config Release --target install -- /m:10

Check failure on line 44 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build LibMultiSense

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 44, Col: 7): 'run' is already defined .github/workflows/build.yml (Line: 47, Col: 7): 'run' is already defined
- id: build-debug
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug
run: cmake --build ${{github.workspace}}/build --config Debug --target install -- /m:10