File tree Expand file tree Collapse file tree 4 files changed +37
-6
lines changed Expand file tree Collapse file tree 4 files changed +37
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : main
2
+ on : [push, pull_request]
3
+ jobs :
4
+ build :
5
+ runs-on : ${{ matrix.os }}
6
+ strategy :
7
+ matrix :
8
+ os : [ubuntu-latest, windows-latest, macos-latest]
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+ with :
12
+ submodules : recursive
13
+ - name : install Boost on Ubuntu
14
+ if : matrix.os == 'ubuntu-latest'
15
+ run : sudo apt-get install libboost-all-dev
16
+ - name : Set Boost on Windows
17
+ if : matrix.os == 'windows-latest'
18
+ run : echo "::set-env name=BOOST_ROOT::$env:BOOST_ROOT_1_72_0"
19
+ - name : install Boost on MacOS
20
+ if : matrix.os == 'macos-latest'
21
+ run : brew install boost
22
+ - name : configure
23
+ run : cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
24
+ - name : build
25
+ run : cmake --build build
26
+ - name : test
27
+ run : cd build && ctest -VV
Original file line number Diff line number Diff line change 1
- # mFAST [ ![ Build Status] ( https://travis-ci.org/objectcomputing/mFAST.svg?branch=master )] ( https://travis-ci.org/objectcomputing/mFAST ) [ ![ Build status] ( https://ci.appveyor.com/api/projects/status/0rkg9d8ey6kidmrd?svg=true )] ( https://ci.appveyor.com/project/huangminghuang/mfast )
2
-
1
+ # mFAST [ ![ Actions Status] ( https://github.com/objectcomputing/mFAST/workflows/main/badge.svg )] ( https://github.com/objectcomputing/mFAST/actions )
3
2
4
3
### Introduction
5
4
Original file line number Diff line number Diff line change 1
1
2
+ find_package (Boost 1.59.0 REQUIRED )
3
+ if (Boost_VERSION VERSION_LESS "1.72.0" )
4
+ set (CMAKE_CXX_STANDARD 11 CACHE INTERNAL "specifies the C++ standard whose features are requested to build this target" )
5
+ else ()
6
+ set (CMAKE_CXX_STANDARD 14 CACHE INTERNAL "specifies the C++ standard whose features are requested to build this target" )
7
+ endif ()
2
8
3
- set (CMAKE_CXX_STANDARD 11 CACHE INTERNAL "specifies the C++ standard whose features are requested to build this target" )
4
9
set (CMAKE_CXX_STANDARD_REQUIRED ON )
5
10
if (NOT "${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
6
11
### Even though CMAKE_CXX_STANDARD_REQUIRED is supported since CMake 3.1, it doesn't work for Emscripten em++ together with
7
12
### Cmake 3.6.
8
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu ++${CMAKE_CXX_STANDARD} " )
13
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c ++${CMAKE_CXX_STANDARD} " )
9
14
endif ()
Original file line number Diff line number Diff line change 5
5
// See the file license.txt for licensing information.
6
6
#pragma once
7
7
8
- #include < boost/detail/ endian.hpp >
8
+ #include < boost/predef/other/ endian.h >
9
9
#include " fast_ostream.h"
10
10
11
11
namespace mfast {
12
- #ifdef BOOST_BIG_ENDIAN
12
+ #if BOOST_ENDIAN_BIG_BYTE
13
13
const int SMALLEST_ADDRESS_BYTE = sizeof (std::size_t ) - 1 ;
14
14
#else
15
15
const int SMALLEST_ADDRESS_BYTE = 0 ;
You can’t perform that action at this time.
0 commit comments