Skip to content

move some stuff around #9

move some stuff around

move some stuff around #9

Workflow file for this run

name: "cpp"
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
build:
name: Build and test cpp
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
cc: "gcc"
cxx: "g++"
- os: ubuntu-18.04
env: ARCH=x86
cc: "gcc-4.8"
cxx: "g++-4.8"
- os: ubuntu-22.04
env: EMSCRIPTEN=ON
cc: "gcc"
cxx: "g++"
- os: ubuntu-22.04
cc: "clang"
cxx: "clang++"
- os: ubuntu-22.04
env: CMAKE_EXTRA="-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS='-march=native'"
cc: "gcc"
cxx: "g++"
- os: macos-latest
cc: "clang"
cxx: "clang++"
- os: windows-latest
cc: "gcc"
cxx: "g++"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Install Dependencies
run: |
if [ "${{ matrix.env }}" = "ARCH=x86" ]; then
sudo apt-get update
sudo apt-get install gcc-4.8 g++-4.8 g++-4.8-multilib linux-libc-dev:i386 libc6-dev-i386
fi
if: matrix.os != 'windows-latest'
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.16.x'
- name: build and test
run: |
mkdir build && cd build
export CC=${{matrix.cc}}
export CXX=${{matrix.cxx}}
cmake -Dmmtf_build_examples=ON -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=debug ..
make -j2
echo "lol"
ls
ls *
./tests/mmtf_tests
./tests/multi_cpp_test
./examples/mmtf_demo ../submodules/mmtf_spec/test-suite/mmtf/173D.mmtf
./examples/traverse ../submodules/mmtf_spec/test-suite/mmtf/173D.mmtf
./examples/traverse ../submodules/mmtf_spec/test-suite/mmtf/173D.mmtf json
./examples/traverse ../submodules/mmtf_spec/test-suite/mmtf/173D.mmtf print
./examples/print_as_pdb ../submodules/mmtf_spec/test-suite/mmtf/173D.mmtf