Skip to content

Include multiprocessrollingfileappender when requested #775

Include multiprocessrollingfileappender when requested

Include multiprocessrollingfileappender when requested #775

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: log4cxx-windows-static
on: [push, pull_request]
jobs:
job:
name: ${{ matrix.os }}-${{ matrix.cxx }}-build-and-test
runs-on: ${{ matrix.os }}
timeout-minutes: 38
strategy:
fail-fast: false
matrix:
name: [windows-2019, windows-2022]
include:
- name: windows-2019
os: windows-2019
- name: windows-2022
os: windows-2022
steps:
- uses: actions/checkout@v3
with:
path: main
- name: 'Restore Prebuilt Dependencies'
id: restore-vcpkg-cache
uses: actions/cache@v3
with:
path: vcpkg
key: ${{ runner.os }}-${{ matrix.name }}-cache-x64-static
- name: 'Checkout VCPKG'
if: steps.restore-vcpkg-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: microsoft/vcpkg
path: vcpkg
ref: 0ba60bfef5dea4cb2599daa7ad8364e309835a68
- name: 'Configure Dependencies'
if: steps.restore-vcpkg-cache.outputs.cache-hit != 'true'
id: runvcpkg
shell: pwsh
run: |
cd vcpkg
./bootstrap-vcpkg.bat
./vcpkg install apr apr-util --triplet=x64-windows-static
- name: 'Install zip'
id: install-zip
shell: pwsh
run: |
$Env:PATH += ";C:\msys64\usr\bin"
pacman --noconfirm -S zip
- name: 'run cmake - static'
shell: pwsh
run: |
$THISDIR=Get-Location
cd main
mkdir build
cd build
cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DBUILD_SHARED_LIBS=off -DLOG4CXX_TEST_PROGRAM_PATH=C:\msys64\usr\bin "-DCMAKE_TOOLCHAIN_FILE=$THISDIR/vcpkg/scripts/buildsystems/vcpkg.cmake" ..
cmake --build .
- name: run unit tests
shell: pwsh
run: |
cd main
cd build
ctest -C Debug --output-on-failure -V