Skip to content

Commit

Permalink
github action update
Browse files Browse the repository at this point in the history
  • Loading branch information
injae committed Jul 11, 2021
1 parent 3b88ded commit bd62b58
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 8 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on: [push]
jobs:
ubuntu-bionic-gcc-11:
runs-on: ubuntu-18.04
env:
CMAKE_FLAGS: '-DUSE_CPPM_PATH=ON -DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_BUILD_EXAMPLES=ON -DSERDEPP_USE_BENCHMARK=ON'
strategy:
matrix:
build-type: ['Release', 'Debug']
steps:
- name: Clone Repository
uses: actions/checkout@master
Expand All @@ -21,16 +26,23 @@ jobs:
echo "CXX=g++-11" >> $GITHUB_ENV
- name: CMake build
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DUSE_CPPM_PATH=ON -DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_USE_YAML-CPP=ON -DSERDEPP_BUILD_EXAMPLES=ON .
cd build && cmake --build . --config Release && cd Release
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.build-type}} $CMAKE_FLAGS .
cd build
cmake --build . --config ${{matrix.build-type}}
- name: Run Test Script
run: |
cd ${{matrix.build-type}}
./serde_example
./serde_example1
./simple_example
ubuntu-bionic-llvm-8:
runs-on: ubuntu-18.04
env:
CMAKE_FLAGS: '-DUSE_CPPM_PATH=ON -DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_BUILD_EXAMPLES=ON -DSERDEPP_USE_BENCHMARK=ON'
strategy:
matrix:
build-type: ['Release', 'Debug']
steps:
- name: Clone Repository
uses: actions/checkout@master
Expand All @@ -49,10 +61,12 @@ jobs:
echo "CXX=clang++-8" >> $GITHUB_ENV
- name: CMake build
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DUSE_CPPM_PATH=ON -DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_USE_YAML-CPP=ON -DSERDEPP_BUILD_EXAMPLES=ON .
cd build && cmake --build . --config Release && cd Release
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.build-type}} $CMAKE_FLAGS .
cd build
cmake --build . --config ${{matrix.build-type}}
- name: Run Test Script
run: |
cd ${{matrix.build-type}}
./serde_example
./serde_example1
./simple_example
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
macos-clang:
runs-on: macos-latest
env:
CMAKE_FLAGS: '-DUSE_CPPM_PATH=ON -DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_BUILD_EXAMPLES=ON'
CMAKE_FLAGS: '-DUSE_CPPM_PATH=ON -DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_BUILD_EXAMPLES=ON -DSERDEPP_USE_BENCHMARK=ON'
strategy:
matrix:
build-type: ['Release', 'Debug']
Expand All @@ -25,10 +25,11 @@ jobs:
- name: CMake build
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.build-type}} $CMAKE_FLAGS .
cd build && cmake --build . --config ${{matrix.build-type}}
cd ${{matrix.build-type}}
cd build
cmake --build . --config ${{matrix.build-type}}
- name: Run Test Script
run: |
cd ${{matrix.build-type}}
./serde_example
./serde_example1
./simple_example
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/window.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: [push]
jobs:
windows-msvc:
runs-on: windows-2019
env:
CMAKE_FLAGS: '-DUSE_CPPM_PATH=ON -DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_BUILD_EXAMPLES=ON -DSERDEPP_USE_BENCHMARK=ON'
strategy:
matrix:
build-type: ['Release', 'Debug']
Expand All @@ -15,9 +17,15 @@ jobs:
submodules: true
- name: CMake build
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.build-type}} -DUSE_CPPM_PATH=ON .
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.build-type}} $CMAKE_FLAGS .
cd build
cmake --build . --config ${{matrix.build-type}} --target install --target cppm_link
- name: Run Test Script
run: |
cd ${{matrix.build-type}}
./serde_example
./serde_example1
./simple_example
- name: Cppm build install
run: |
cd build/${{matrix.build-type}}
Expand Down

0 comments on commit bd62b58

Please sign in to comment.