Skip to content

Commit

Permalink
Lets try the one from dlisio
Browse files Browse the repository at this point in the history
  • Loading branch information
achaikou committed Jan 25, 2024
1 parent ff25788 commit 4f69ee0
Showing 1 changed file with 26 additions and 21 deletions.
47 changes: 26 additions & 21 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@ jobs:

- uses: actions/[email protected]

# - name: set cmake generator for x86 platform
# if: ${{ matrix.platform == 'x86' }}
# run:
# echo "cmake_generator=-'G \"Visual Studio 16 2019\" -A Win32'" >> "$GITHUB_ENV"

# - name: set cmake generator for x64 platform
# if: ${{ matrix.platform == 'x64' }}
# run:
# echo "cmake_generator='-G \"Visual Studio 16 2019\" -A x64'" >> "$GITHUB_ENV"

- name: install fmtlib
run: |
git clone https://github.com/fmtlib/fmt.git
Expand All @@ -56,15 +46,30 @@ jobs:
cmake --build . --config Release --target install
shell: bash

- name: build lfp
run: |
mkdir build
cd build
cmake -DCMAKE_CXX_FLAGS="/D_CRT_SECURE_NO_WARNINGS" \
-DLFP_FMT_HEADER_ONLY=${{ matrix.fmt-header-only }} \
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
${{ matrix.cmake_generator }} \
..
cmake --build . --config ${{ matrix.config }} --target install
ctest -C ${{ matrix.config }} --verbose
# - name: build lfp
# run: |
# mkdir build
# cd build
# cmake -DCMAKE_CXX_FLAGS="/D_CRT_SECURE_NO_WARNINGS" \
# -DLFP_FMT_HEADER_ONLY=${{ matrix.fmt-header-only }} \
# -DCMAKE_BUILD_TYPE=${{ matrix.config }} \
# ${{ matrix.cmake_generator }} \
# ..
# cmake --build . --config ${{ matrix.config }} --target install
# ctest -C ${{ matrix.config }} --verbose
# shell: bash

- name: Install Layered File Protocols
shell: bash
run: |
cmake \
-S build \
-B build \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DLFP_FMT_HEADER_ONLY=ON \
-DBUILD_TESTING=OFF \
${{ matrix.cmake_generator }}
cmake \
--build build \
--target install \
--config ${{ matrix.config }}

0 comments on commit 4f69ee0

Please sign in to comment.