Skip to content

more windows

more windows #12

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++
shell: bash
- os: ubuntu-18.04
env: ARCH=x86
cc: gcc-4.8
cxx: g++-4.8
shell: bash
- os: ubuntu-22.04
env: EMSCRIPTEN=ON
cc: gcc
cxx: g++
shell: bash
- os: ubuntu-22.04
cc: clang
cxx: clang++
shell: bash
- os: ubuntu-22.04
env: CMAKE_EXTRA="-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS='-march=native'"
cc: gcc
cxx: g++
shell: bash
- os: macos-latest
cc: clang
cxx: clang++
shell: bash
- os: windows-latest
cc: gcc
cxx: g++
shell: 'msys2 {0}'
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.shell }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: install mingw & deps
uses: msys2/setup-msys2@v2
with:
update: true
install: >-
cmake
mingw-w64-cmake
mingw-w64-extra-cmake-modules
if: matrix.os == 'windows-latest'
- 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}}
${{matrix.env}} 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