Files
sqlgen/.github/workflows/windows-postgres-cxx20.yaml
2025-05-22 08:44:59 +02:00

37 lines
1.1 KiB
YAML

name: windows-postgres-cxx20
on:
pull_request:
types: [opened, synchronize, reopened, closed]
push:
branches:
- master
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
jobs:
windows-msvc:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- uses: ilammy/msvc-dev-cmd@v1
- uses: lukka/run-vcpkg@v11
- name: Compile
run: |
cmake -S . -B build -G Ninja -DCMAKE_CXX_STANDARD=20 -DSQLGEN_BUILD_TESTS=ON -DSQLGEN_SQLITE3=OFF -DSQLGEN_BUILD_DRY_TESTS_ONLY=ON
cmake --build build --config Release -j4
- name: Run tests
run: |
ctest --test-dir build --output-on-failure