Skip to content

test pr: do not merge #2

test pr: do not merge

test pr: do not merge #2

name: pull-req-precheck
on:
pull_request:
branches:
- "master"
- "main"
jobs:
build-lsp:
strategy:
matrix:
with_gc: [with-gc, without-gc]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: ./.github/actions/initialize-linux-env/action.yaml
- name: Add gc option to cmake build
if: ${{ matrix.with_gc == 'with-gc' }}
run: |
echo LSPCPP_SUPPORT_BOEHM_GC=true >> "$GITHUB_ENV"
echo LSPCPP_CI_VCPKG_FEATURES=bdwgc >> "$GITHUB_ENV"
- name: configure cmake
run: cmake --preset ci/default
- name: build cmake
run: cmake --build --preset ci/default -j --target lspcpp
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: liblspcpp-linux
path: cmake-build-ci/liblspcpp.a