Skip to content

Commit

Permalink
update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
injae committed Jan 1, 2024
1 parent 6be3d2c commit 865d6cb
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 61 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/code-cov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CodeCov

on: [pull_request]
on:
push:
branches:
- main
pull_request:

jobs:
ubuntu-llvm-code-cov:
Expand All @@ -14,15 +18,12 @@ jobs:
steps:
- name: ccache
uses: hendrikmuhs/ccache-action@v1
- name: Basic Setting
- name: C++ Setting
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -yq build-essential cmake
- name: Install LLVM
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x ./llvm.sh
sudo ./llvm.sh ${{matrix.llvm-version}}
sudo apt-get install -yq clang-${{matrix.clang-version}} libc++-dev libc++abi-dev libstdc++-${{matrix.clang-version}}-dev build-essential cmake
sudo apt-get install -yq libllvm${{matrix.clang-version}} llvm-${{matrix.clang-version}} llvm-${{matrix.clang-version}}-dev llvm-${{matrix.clang-version}}-runtime
- name: Compiler Setting
run: |
echo "CC=clang-${{matrix.llvm-version}}" >> $GITHUB_ENV
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Linux

on: [pull_request]
on:
push:
branches:
- main
pull_request:

jobs:
ubuntu-gcc:
Expand Down Expand Up @@ -44,23 +48,19 @@ jobs:
strategy:
matrix:
build-type: ["Release", "Debug"]
llvm-version: ["9"]
clang-version: ["13", "14", "15"]
steps:
- name: ccache
uses: hendrikmuhs/ccache-action@v1
- name: Basic Setting
- name: C++ Setting
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -yq build-essential cmake
- name: Install LLVM
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x ./llvm.sh
sudo ./llvm.sh ${{matrix.llvm-version}}
sudo apt-get install -yq clang-${{matrix.clang-version}} libc++-dev libc++abi-dev libstdc++-${{matrix.clang-version}}-dev build-essential cmake
- name: Compiler Setting
run: |
echo "CC=clang-${{matrix.llvm-version}}" >> $GITHUB_ENV
echo "CXX=clang++-${{matrix.llvm-version}}" >> $GITHUB_ENV
echo "CC=clang-${{matrix.clang-version}}" >> $GITHUB_ENV
echo "CXX=clang++-${{matrix.clang-version}}" >> $GITHUB_ENV
- name: Clone Repository
uses: actions/checkout@master
with:
Expand Down
55 changes: 29 additions & 26 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
name: MacOS

on: [pull_request]
on:
push:
branches:
- main
pull_request:

jobs:
macos-clang:
runs-on: macos-latest
env:
CMAKE_FLAGS: '-DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_USE_YAML-CPP=ON -DSERDEPP_BUILD_EXAMPLES=ON -DSERDEPP_USE_RAPIDJSON=ON -DSERDEPP_USE_FMT=ON -DSERDEPP_BUILD_TESTING=ON -DSERDEPP_USE_CATCH2=ON'
CMAKE_FLAGS: "-DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_USE_YAML-CPP=ON -DSERDEPP_BUILD_EXAMPLES=ON -DSERDEPP_USE_RAPIDJSON=ON -DSERDEPP_USE_FMT=ON -DSERDEPP_BUILD_TESTING=ON -DSERDEPP_USE_CATCH2=ON"
strategy:
matrix:
build-type: ['Release', 'Debug']
build-type: ["Release", "Debug"]
steps:
- name: ccache
uses: hendrikmuhs/ccache-action@v1
- name: Clone Repository
uses: actions/checkout@master
with:
submodules: true
- name: C++ Setting
run: |
brew install llvm cmake
- name: Compiler Setting
run: |
echo "CC=/usr/local/opt/llvm/bin/clang" >> $GITHUB_ENV
echo "CXX=/usr/local/opt/llvm/bin/clang++" >> $GITHUB_ENV
- name: CMake build
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.build-type}} ${{env.CMAKE_FLAGS}} .
cd build
cmake --build . --config ${{matrix.build-type}}
- name: Run Test Script
run: |
cd build
ctest .
- name: ccache
uses: hendrikmuhs/ccache-action@v1
- name: Clone Repository
uses: actions/checkout@master
with:
submodules: true
- name: C++ Setting
run: |
brew install llvm cmake
- name: Compiler Setting
run: |
echo "CC=/usr/local/opt/llvm/bin/clang" >> $GITHUB_ENV
echo "CXX=/usr/local/opt/llvm/bin/clang++" >> $GITHUB_ENV
- name: CMake build
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.build-type}} ${{env.CMAKE_FLAGS}} .
cd build
cmake --build . --config ${{matrix.build-type}}
- name: Run Test Script
run: |
cd build
ctest .
36 changes: 20 additions & 16 deletions .github/workflows/window.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
name: Windows

on: [pull_request]
on:
push:
branches:
- main
pull_request:

jobs:
windows-msvc:
runs-on: windows-2019
env:
CMAKE_FLAGS: '-DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_USE_YAML-CPP=ON -DSERDEPP_BUILD_EXAMPLES=ON -DSERDEPP_USE_RAPIDJSON=ON -DSERDEPP_USE_FMT=ON -DSERDEPP_BUILD_TESTING=ON -DSERDEPP_USE_CATCH2=ON'
CMAKE_FLAGS: "-DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_USE_YAML-CPP=ON -DSERDEPP_BUILD_EXAMPLES=ON -DSERDEPP_USE_RAPIDJSON=ON -DSERDEPP_USE_FMT=ON -DSERDEPP_BUILD_TESTING=ON -DSERDEPP_USE_CATCH2=ON"
strategy:
matrix:
build-type: ['Release', 'Debug']
build-type: ["Release", "Debug"]
steps:
- name: Clone Repository
uses: actions/checkout@master
with:
submodules: true
- name: CMake build
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.build-type}} ${{env.CMAKE_FLAGS}}.
cd build
cmake --build . --config ${{matrix.build-type}}
- name: Run Test Script
run: |
cd build
ctest .
- name: Clone Repository
uses: actions/checkout@master
with:
submodules: true
- name: CMake build
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.build-type}} ${{env.CMAKE_FLAGS}}.
cd build
cmake --build . --config ${{matrix.build-type}}
- name: Run Test Script
run: |
cd build
ctest .

0 comments on commit 865d6cb

Please sign in to comment.