Matrix Decomposition and Tensor IO #66
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: llvm-clang test (MacOS) | |
on: | |
push: | |
branches: [main, develop] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
branches: [main, develop] | |
jobs: | |
build-and-test: | |
runs-on: macos-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Download llvm-clang | |
run: | | |
brew install llvm | |
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> /Users/runner/.bash_profile | |
echo 'export LDFLAGS="-L/usr/local/opt/llvm/lib"' >> /Users/runner/.bash_profile | |
echo 'export CPPFLAGS="-I/usr/local/opt/llvm/include"' >> /Users/runner/.bash_profile | |
- name: Build qsyn | |
run: | | |
source /Users/runner/.bash_profile | |
clang++ --version | |
echo "Building qsyn using $(sysctl -n hw.logicalcpu) cores" | |
mkdir -p build | |
cmake -S . -B build -DCMAKE_CXX_COMPILER=$(which clang++) | |
cmake --build build -j $(sysctl -n hw.logicalcpu) | |
## remove this comment to run tests | |
## currently, tests are not working on macos because of implementation of std::unordered_map (we guess) | |
# - name: Run test for qsyn | |
# run: make test |