mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
* updated the version handling - Introduces a new version.txt file - This file is parsed by CMake to determine the current version * assign version in project call * use version variable * Meson update 1. Minor fix for GCC build 2. Use external version file which can be used by CMake as well * get version from git tag now * ci/cd broke.. * maybe this solves the error * updated workflow files * one last test * remove git describe call
141 lines
3.4 KiB
YAML
141 lines
3.4 KiB
YAML
name: clang
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build-clang-9-linux-stl:
|
|
name: Clang-9 Linux - STL
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-20.04]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y "clang-9" "lldb-9" "lld-9" "clang-format-9"
|
|
export CC=clang-9
|
|
export CXX=clang++-9
|
|
git fetch --tags
|
|
cmake -D BUILD_TESTS=ON -DNO_STL=OFF -DETL_USE_TYPE_TRAITS_BUILTINS=OFF -DETL_USER_DEFINED_TYPE_TRAITS=OFF -DETL_FORCE_TEST_CPP03=OFF ./
|
|
clang --version
|
|
make
|
|
|
|
- name: Run tests
|
|
run: ./test/etl_tests
|
|
|
|
build-clang-9-linux-no-stl:
|
|
name: Clang-9 Linux - No STL
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-20.04]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
run: |
|
|
git fetch --tags
|
|
cmake -DBUILD_TESTS=ON -DNO_STL=ON -DETL_USE_TYPE_TRAITS_BUILTINS=OFF -DETL_USER_DEFINED_TYPE_TRAITS=OFF -DETL_FORCE_TEST_CPP03=OFF ./
|
|
gcc --version
|
|
make
|
|
|
|
- name: Run tests
|
|
run: ./test/etl_tests
|
|
|
|
build-clang-9-linux-stl-force-cpp03:
|
|
name: Clang-9 Linux - STL - Force C++03
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-20.04]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y "clang-9" "lldb-9" "lld-9" "clang-format-9"
|
|
export CC=clang-9
|
|
export CXX=clang++-9
|
|
git fetch --tags
|
|
cmake -D BUILD_TESTS=ON -DNO_STL=OFF -DETL_USE_TYPE_TRAITS_BUILTINS=OFF -DETL_USER_DEFINED_TYPE_TRAITS=OFF -DETL_FORCE_TEST_CPP03=ON ./
|
|
clang --version
|
|
make
|
|
|
|
- name: Run tests
|
|
run: ./test/etl_tests
|
|
|
|
build-clang-10-osx-stl:
|
|
name: Clang-10 OSX - STL
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-10.15]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
run: |
|
|
export CC=clang
|
|
export CXX=clang++
|
|
git fetch --tags
|
|
cmake -D BUILD_TESTS=ON -DNO_STL=OFF -DETL_USE_TYPE_TRAITS_BUILTINS=OFF -DETL_USER_DEFINED_TYPE_TRAITS=OFF -DETL_FORCE_TEST_CPP03=OFF ./
|
|
clang --version
|
|
make
|
|
|
|
- name: Run tests
|
|
run: ./test/etl_tests
|
|
|
|
build-clang-10-osx-no-stl:
|
|
name: Clang-10 OSX - No STL
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-10.15]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
run: |
|
|
export CC=clang
|
|
export CXX=clang++
|
|
git fetch --tags
|
|
cmake -D BUILD_TESTS=ON -DNO_STL=ON -DETL_USE_TYPE_TRAITS_BUILTINS=OFF -DETL_USER_DEFINED_TYPE_TRAITS=OFF -DETL_FORCE_TEST_CPP03=OFF ./
|
|
clang --version
|
|
make
|
|
|
|
- name: Run tests
|
|
run: ./test/etl_tests
|
|
|
|
build-clang-10-osx-stl-force-cpp03:
|
|
name: Clang-10 OSX - STL - Force C++03
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-10.15]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
run: |
|
|
export CC=clang
|
|
export CXX=clang++
|
|
git fetch --tags
|
|
cmake -D BUILD_TESTS=ON -DNO_STL=OFF -DETL_USE_TYPE_TRAITS_BUILTINS=OFF -DETL_USER_DEFINED_TYPE_TRAITS=OFF -DETL_FORCE_TEST_CPP03=ON ./
|
|
clang --version
|
|
make
|
|
|
|
- name: Run tests
|
|
run: ./test/etl_tests |