-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
83 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: C/C++ CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
name: Unit tests on ${{ matrix.os }} with ${{ matrix.compiler }} standard ${{ matrix.standard }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
standard: [c++11, c++14, c++17, c++20] | ||
compiler: [g++-10, clang++-12] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install gtest | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libgtest-dev | ||
- name: configure ${{ matrix.standard }} | ||
run: autoreconf -fi && ./configure CXX=${{ matrix.compiler }} CXXFLAGS="-std=${{ matrix.standard }} -Wall -Werror" | ||
- name: check ${{ matrix.standard }} | ||
run: make -j 2 check | ||
|
||
test_libcxx: | ||
name: Unit tests with clang and libc++ | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
standard: [c++11, c++14, c++17, c++20] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install gtest | ||
run: | | ||
set -e | ||
sudo apt install libc++-12-dev libc++1-12 libc++abi1-12 libc++abi-12-dev | ||
mkdir gtest build | ||
curl -L https://github.com/google/googletest/archive/refs/tags/release-1.11.0.tar.gz | tar zx --strip-components=1 -C gtest | ||
cd build | ||
cmake ../gtest -DBUILD_GMOCK=OFF -DCMAKE_CXX_COMPILER=clang++-12 -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_SHARED_LINKER_FLAGS="-stdlib=libc++" | ||
make -j 2 | ||
sudo make install | ||
sudo ldconfig | ||
- name: configure | ||
run: | | ||
autoreconf -fi | ||
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure CC=clang-12 CXX=clang++-12 CXXFLAGS="-std=${{ matrix.standard }} -Wall -Werror -stdlib=libc++" LDFLAGS="-stdlib=libc++" || cat config.log | ||
- name: check ${{ matrix.standard }} | ||
run: make -j 2 check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
AC_INIT([compact_vector],[0.1.0],[[email protected]]) | ||
AC_INIT([compact_vector],[0.1.1],[[email protected]]) | ||
AC_CONFIG_AUX_DIR([build-aux]) | ||
AM_SILENT_RULES([yes]) | ||
AC_CONFIG_SRCDIR([include/compact_vector.hpp]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters