Skip to content

ENH: add build on ubuntu #126

ENH: add build on ubuntu

ENH: add build on ubuntu #126

Workflow file for this run

name: CMake Build Matrix
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest] # , macos-latest
include:
- os: windows-latest
compiler: msvc
- os: ubuntu-latest

Check failure on line 17 in .github/workflows/build-matrix.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-matrix.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
compiler: gcc
# - os: macos-latest
# compiler: clang
steps:
- name: Checkout code
uses: actions/[email protected]
- name: vcpkg installation
shell: bash
run: |
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
if [[ "${{ runner.os }}" == "Windows" ]]; then
./bootstrap-vcpkg.bat
else
./bootstrap-vcpkg.sh
fi
./vcpkg integrate install
./vcpkg install
- name: Configure CMake
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
# cmake -B build -DCMAKE_BUILD_TYPE=Release -DCPM_SOURCE_CACHE=~/cpm-cache
- name: Build
run: |
cmake --build build --config Release
- name: Run tests
run: |
ctest --test-dir build --output-on-failure -C Release