Skip to content

do not allow automatic conversion from floating point to integer arrays #39

do not allow automatic conversion from floating point to integer arrays

do not allow automatic conversion from floating point to integer arrays #39

name: Testing c++ only on ubuntu-latest
on: [push, pull_request]
env:
SKBUILD_BUILD_OPTIONS: --verbose
jobs:
build-depends:
uses: ./.github/workflows/test-linux-dependencies.yml
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Set up requirements & configuration variables
run: |
sudo apt-get update
sudo apt-get install build-essential cmake
pip install --upgrade pip wheel build
echo "SKBUILD_BUILD_OPTIONS=${{ env.SKBUILD_BUILD_OPTIONS }}" >> "$GITHUB_ENV"
### libcasm-global ###
- name: restore libcasm-global cache
id: cache-libcasm-global-restore
uses: actions/cache/restore@v3
with:
path: CASMcode_global/dist
key: ${{ runner.os }}-libcasm-global-v2-0-3
- name: Install CASM dependencies
run: |
pip install CASMcode_global/dist/*.whl
pip install -r build_requirements.txt
- name: configure
shell: bash
run: |
mkdir build_cxx_only
cd build_cxx_only
cmake -DCMAKE_BUILD_TYPE=Release ..
- name: make
shell: bash
run: |
cd build_cxx_only
make -j4 VERBOSE=1
- name: install
shell: bash
run: |
cd build_cxx_only
make install
- name: configure tests
shell: bash
run: |
mkdir build_cxx_test
cd build_cxx_test
cmake -DCMAKE_BUILD_TYPE=Release ../tests
- name: make tests
shell: bash
run: |
cd build_cxx_test
make -j4 VERBOSE=1
- name: run tests
shell: bash
run: |
cd build_cxx_test
make test
- name: upload test log
if: always()
uses: actions/upload-artifact@v3
with:
name: libcasm-xtal-cxx-test-log
path: build_cxx_test/Testing/Temporary/LastTest.log