mirror of
https://github.com/boostorg/ublas.git
synced 2026-01-23 18:12:14 +00:00
GitHub Action is sunsetting the macOS 10.15 Actions runner. It will stop working intermittently until being completely removed by 2022-8-30: https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22
73 lines
2.0 KiB
YAML
73 lines
2.0 KiB
YAML
# Copyright (c) 2020 Mohammad Ashar Khan
|
|
# Copyright (c) 2021 Cem Bassoy
|
|
# Distributed under Boost Software License, Version 1.0
|
|
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
|
|
|
name: "Apple MacOS"
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- '**.md'
|
|
- 'doc/**'
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
- 'doc/**'
|
|
jobs:
|
|
build:
|
|
name: "MacOS 11 clang -std=c++${{matrix.cxxstd}}"
|
|
runs-on: macos-11
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
cxxstd: [2a]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Git Clone Boost.uBlas
|
|
run: |
|
|
cd ${GITHUB_WORKSPACE}
|
|
cd ..
|
|
|
|
git clone -b master --depth 1 https://github.com/boostorg/boost.git boost-root
|
|
cd boost-root
|
|
echo "BOOST_ROOT=${PWD}" >> ${GITHUB_ENV}
|
|
echo $BOOST_ROOT
|
|
|
|
git submodule update --init --depth=1 --jobs 8 tools/build
|
|
git submodule update --init --depth=1 --jobs 8 libs/config
|
|
git submodule update --init --depth=1 --jobs 8 tools/boostdep
|
|
|
|
mkdir -p libs/numeric/
|
|
cp -rp ${GITHUB_WORKSPACE}/. libs/numeric/ublas
|
|
python tools/boostdep/depinst/depinst.py -g " --depth=1" -I benchmarks numeric/ublas
|
|
|
|
- name: Bootstrap and Compile Boost.uBlas
|
|
run: |
|
|
cd $BOOST_ROOT
|
|
./bootstrap.sh
|
|
./b2 -j8 headers
|
|
echo "using clang : : $(brew --prefix llvm)/bin/clang++ ;" >> ~/user-config.jam;
|
|
|
|
|
|
- name: Test Benchmarks
|
|
run: |
|
|
cd $BOOST_ROOT
|
|
cd libs/numeric/ublas
|
|
$BOOST_ROOT/b2 -j8 benchmarks cxxstd=${{matrix.cxxstd}}
|
|
|
|
- name: Test Tensor Examples
|
|
run: |
|
|
cd $BOOST_ROOT
|
|
cd libs/numeric/ublas
|
|
$BOOST_ROOT/b2 -j8 examples/tensor cxxstd=${{matrix.cxxstd}}
|
|
|
|
- name: Test Tensor
|
|
run: |
|
|
cd $BOOST_ROOT
|
|
cd libs/numeric/ublas
|
|
$BOOST_ROOT/b2 -j8 test/tensor cxxstd=${{matrix.cxxstd}}
|
|
|