test pr: do not merge #2
Workflow file for this run
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: 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 |