Skip to content

temporarily disasble some CI platforms #11

temporarily disasble some CI platforms

temporarily disasble some CI platforms #11

Workflow file for this run

name: basictest
on: push
# Workflow which pip installs the source code and checks that both bundles build
# and runs tests in both release and debug mode. For simplicity, a lot of
# optional externals will be missing, so this test is not very comprehensive.
jobs:
build:
strategy:
matrix:
include:
#TMP# - { os: ubuntu-20.04, CC: gcc-10, CXX: g++-10, python: '3.8' }
#TMP# - { os: ubuntu-22.04, CC: gcc, CXX: g++, python: '3.9' }
#TMP# - { os: ubuntu-latest, CC: gcc, CXX: g++, python: '3.10' }
- { os: ubuntu-latest, CC: clang, CXX: clang++, python: '3.11' }
- { os: ubuntu-latest, CC: gcc-12, CXX: g++-12, python: '3.11' }
#TMP# - { os: macos-11, CC: clang, CXX: clang++, python: "3.10" }
#TMP# - { os: macos-12, CC: clang, CXX: clang++, python: "3.11" }
#TMP# #- { os: macos-13, CC: clang, CXX: clang++, python: "3.11" }
name: ${{ matrix.os }}.${{ matrix.CC }}.python-${{ matrix.python }}
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: src
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Check versions
run: |
which python3
python3 --version
which cmake
cmake --version
- name: Install package
run: |
python3 -m pip install ./src
python3 -m pip install numpy ncrystal
nctool --test
- name: Build-and-test-release-mode
run: |
which xcrun >/dev/null && export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
cd ./src/resources/example_project_release_mode && simplebuild -vt --testexcerpts=100
- name: Build-and-test-debug-mode
run: |
which xcrun >/dev/null && export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
cd ./src/resources/example_project_debug_mode && sb -vt --testexcerpts=100