Skip to content

Commit

Permalink
Fix tests for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rHermes committed Jun 8, 2024
1 parent dc5d1f8 commit f0cd1e5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@ jobs:
#
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-24.04, windows-latest]
build_type: [Release, Debug, RelWithDebInfo]
cpp_compiler: [g++-13, clang++-15, cl]
cpp_compiler: [g++-14, clang++-18, cl]
include:
- os: windows-latest
c_compiler: cl
cpp_compiler: cl
- os: ubuntu-latest
c_compiler: gcc-13
cpp_compiler: g++-13
- os: ubuntu-latest
c_compiler: clang-15
cpp_compiler: clang++-15
- os: ubuntu-24.04
c_compiler: gcc-14
cpp_compiler: g++-14
- os: ubuntu-24.04
c_compiler: clang-18
cpp_compiler: clang++-18
exclude:
- os: windows-latest
cpp_compiler: g++-13
cpp_compiler: g++-14
- os: windows-latest
cpp_compiler: clang++-15
- os: ubuntu-latest
cpp_compiler: clang++-18
- os: ubuntu-24.04
cpp_compiler: cl

steps:
Expand Down
4 changes: 0 additions & 4 deletions tests/fast_pimpl_test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
//
// Created by rhermes on 2024-06-08.
//

#include "fast_pimpl_test.hpp"

#include <string>
Expand Down
12 changes: 12 additions & 0 deletions tests/fast_pimpl_test.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <hage/core/forward_declared_storage.hpp>
#include <hage/core/misc.hpp>
#include <string>

namespace hage::test {
Expand All @@ -11,8 +12,19 @@ struct FastPimplTestImpl;
class FastPimplTest
{
private:
#ifdef _WIN32

#if HAGE_DEBUG
hage::ForwardDeclaredStorage<details::FastPimplTestImpl, 48, 8> m_impl;
#else
hage::ForwardDeclaredStorage<details::FastPimplTestImpl, 40, 8> m_impl;
#endif

#elif defined(__APPLE__)
hage::ForwardDeclaredStorage<details::FastPimplTestImpl, 32, 8> m_impl;
#else
hage::ForwardDeclaredStorage<details::FastPimplTestImpl, 40, 8> m_impl;
#endif
public:
FastPimplTest();
~FastPimplTest();
Expand Down

0 comments on commit f0cd1e5

Please sign in to comment.