Refactored buffer class and added access methods #83
Workflow file for this run
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
name: Linux | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash -e -l {0} | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
name: ${{ matrix.sys.compiler }} ${{ matrix.sys.version }} ${{ matrix.sys.stdlib }} | |
strategy: | |
fail-fast: false | |
matrix: | |
sys: | |
- {compiler: clang, version: '16', config-flags: '', stdlib: 'libstdc++-13' } | |
# - {compiler: clang, version: '16', config-flags: '-DCMAKE_CXX_FLAGS=-stdlib=libc++', stdlib: 'libc++-17' } | |
- {compiler: clang, version: '17', config-flags: '', stdlib: 'libstdc++-13' } | |
# - {compiler: clang, version: '17', config-flags: '-DCMAKE_CXX_FLAGS=-stdlib=libc++', stdlib: 'libc++-17' } | |
- {compiler: gcc, version: '13', config-flags: '' } | |
steps: | |
- name: Install GCC | |
if: matrix.sys.compiler == 'gcc' | |
uses: egor-tensin/setup-gcc@v1 | |
with: | |
version: ${{matrix.sys.version}} | |
platform: x64 | |
- name: Install LLVM and Clang | |
if: matrix.sys.compiler == 'clang' | |
uses: egor-tensin/setup-clang@v1 | |
with: | |
version: ${{matrix.sys.version}} | |
platform: x64 | |
- name: Install the specified standard library for clang | |
if: matrix.sys.compiler == 'clang' | |
run: sudo apt install ${{matrix.sys.stdlib}}-dev -y | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set conda environment | |
uses: mamba-org/setup-micromamba@main | |
with: | |
environment-name: myenv | |
environment-file: environment-dev.yml | |
init-shell: bash | |
cache-downloads: true | |
- name: Configure using CMake | |
run: cmake -G Ninja -Bbuild ${{matrix.sys.config-flags}} -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DBUILD_TESTS=ON | |
- name: Install | |
working-directory: build | |
run: cmake --install . | |
- name: Build | |
working-directory: build | |
run: cmake --build . --target test_sparrow_lib --parallel 8 | |
- name: Run tests | |
working-directory: build | |
run: ./test/test_sparrow_lib |