Skip to content

- cxon: update the readme #1112

- cxon: update the readme

- cxon: update the readme #1112

Workflow file for this run

name: Linux
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '37 3 * * 6'
jobs:
# gcc ########################################################################
gcc:
name: g++ version
runs-on: ubuntu-latest
strategy:
matrix:
compiler: ['9', '10', '11', '12', '13', '14'] # 5, 6 - cio/numeric.hxx:289:52: error: invalid initialization of non-const reference of type ‘unsigned int&’ from an rvalue of type ‘unsigned int’
# 7, 8 - unmet dependencies
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: APT Update
run: |
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ bionic main' | sudo tee -a /etc/apt/sources.list
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ bionic universe' | sudo tee -a /etc/apt/sources.list
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ jammy main' | sudo tee -a /etc/apt/sources.list
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ jammy universe' | sudo tee -a /etc/apt/sources.list
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
- name: Compiler setup
run: sudo apt-get install gcc-${{ matrix.compiler }} g++-${{ matrix.compiler }}
- name: Boost setup
run: sudo apt-get install libboost-container-dev
- name: Check
env:
CXX: g++-${{ matrix.compiler }}
run: $CXX --version; make -j check
gcc-cxx-std:
name: g++ standard
runs-on: ubuntu-latest
strategy:
matrix:
compiler: ['14']
standard: [14, 17, 20, 23, 26]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: APT Update
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
- name: Compiler setup
run: sudo apt-get install gcc-${{ matrix.compiler }} g++-${{ matrix.compiler }}
- name: Boost setup
run: sudo apt-get install libboost-container-dev
- name: Check
env:
CXX: g++-${{ matrix.compiler }}
CXXFLAGS: -std=c++${{ matrix.standard }}
run: $CXX --version; make -j check
gcc-arch-32:
name: g++ 32
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: APT Update
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
- name: Compiler setup
run: sudo apt-get install gcc-14-multilib g++-14-multilib
- name: Boost setup
run: sudo apt-get install libboost-container-dev
- name: Check
env:
CXX: g++-14
CXXFLAGS: -m32 -std=c++20
LDFLAGS: -m32
run: $CXX --version; make -j check
gcc-ubsan:
name: g++ UBSAN
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: APT Update
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
- name: Compiler setup
run: sudo apt-get install gcc-14 g++-14
- name: Boost setup
run: sudo apt-get install libboost-container-dev
- name: Check
env:
CXX: g++-14
CXXFLAGS: -std=c++20 -g -O0 -fsanitize=undefined
LDFLAGS: -fsanitize=undefined
run: $CXX --version; make -j check
gcc-asan:
name: g++ ASAN
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: APT Update
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
- name: Compiler setup
run: sudo apt-get install gcc-14 g++-14
- name: Boost setup
run: sudo apt-get install libboost-container-dev
- name: Check
env:
CXX: g++-14
CXXFLAGS: -std=c++20 -g -O0 -fsanitize=address
LDFLAGS: -fsanitize=address
run: $CXX --version; make -j check
make-install:
name: CXON installation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: APT Update
run: sudo apt-get update
- name: Compiler setup
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
sudo apt-get install gcc-14 g++-14
- name: Boost setup
run: sudo apt-get install libboost-container-dev
- name: Check
env:
CXX: g++-14
CXXFLAGS: -std=c++20
run: |
sudo make install
$CXX --version; make -j INCLUDE= check
# clang ######################################################################
clang:
name: calng++ version
runs-on: ubuntu-latest
strategy:
matrix:
compiler: ['9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20'] # 5.0 - unmet dependencies
# 4, 6, 7, 8 - include/c++/14/bitset:181:6: error: use of undeclared identifier '__builtin_is_constant_evaluated'; did you mean '__is_constant_evaluated'?
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: APT Update
run: |
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ bionic main' | sudo tee -a /etc/apt/sources.list
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ bionic universe' | sudo tee -a /etc/apt/sources.list
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ focal main' | sudo tee -a /etc/apt/sources.list
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ focal universe' | sudo tee -a /etc/apt/sources.list
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ jammy main' | sudo tee -a /etc/apt/sources.list
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ jammy universe' | sudo tee -a /etc/apt/sources.list
sudo apt-get update
- name: Compiler setup
run: sudo apt-get install clang-${{ matrix.compiler }}
- name: Boost setup
run: sudo apt-get install libboost-container-dev
- name: Check
env:
CXX: clang++-${{ matrix.compiler }}
run: $CXX --version; make -j check
clang-libcpp:
name: clang++ & libc++
runs-on: ubuntu-latest
strategy:
matrix:
compiler: ['20']
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: APT Update
run: |
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ jammy main' | sudo tee -a /etc/apt/sources.list
echo 'deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ jammy universe' | sudo tee -a /etc/apt/sources.list
sudo apt-get update
- name: libc++ setup
run: sudo apt-get install libc++-${{ matrix.compiler }}-dev
- name: Compiler setup
run: sudo apt-get install clang-${{ matrix.compiler }}
- name: Boost setup
run: sudo apt-get install libboost-container-dev
- name: Check
env:
CXX: clang++-${{ matrix.compiler }}
CXXFLAGS: -std=c++20 -stdlib=libc++
LDFLAGS: -stdlib=libc++
run: $CXX --version; make -j check
clang-cxx-std:
name: clang++ standard
runs-on: ubuntu-latest
strategy:
matrix:
compiler: ['20']
standard: [14, 17, 20, 23, 26]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: APT Update
run: sudo apt-get update
- name: Compiler setup
run: sudo apt-get install clang-${{ matrix.compiler }}
- name: Boost setup
run: sudo apt-get install libboost-container-dev
- name: Check
env:
CXX: clang++-${{ matrix.compiler }}
CXXFLAGS: -std=c++${{ matrix.standard }}
run: $CXX --version; make -j check