Skip to content

Commit

Permalink
Try macOS action.
Browse files Browse the repository at this point in the history
  • Loading branch information
breyerml committed Apr 25, 2024
1 parent 8295c5d commit 643192a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/clang_macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: macOS CPU
on: push
jobs:
macOS-Test:
runs-on: macos-latest
strategy:
matrix:
float_as_real_type: [ON, OFF]
build_type: [Debug, Release]
steps:
- name: "Install cmake 3.28.3"
uses: lukka/[email protected]
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: "15.0"
- name: Install Python
run: |
brew install python3
brew install numpy
- name: "Clone the PLSSVM repository into PLSSVM/"
uses: actions/[email protected]
with:
repository: SC-SGS/PLSSVM
path: PLSSVM
- name: "Install Python dependencies"
run: |
/usr/local/Frameworks/Python.framework/Versions/3.12/bin/python3.12 -m pip install argparse scikit-learn humanize --break-system-packages
- name: "Configure PLSSVM using CMake"
run: |
mkdir PLSSVM/build
cd PLSSVM/build
cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DPLSSVM_TARGET_PLATFORMS="cpu" -DPLSSVM_ENABLE_ASSERTS=ON -DPLSSVM_ENABLE_LANGUAGE_BINDINGS=ON -DPLSSVM_ENABLE_PERFORMANCE_TRACKING=ON -DPLSSVM_ENABLE_TESTING=ON -DPLSSVM_TEST_FILE_NUM_DATA_POINTS=50 -DPLSSVM_TEST_FILE_NUM_FEATURES=20 -DPLSSVM_ENABLE_LTO=OFF -DPLSSVM_USE_FLOAT_AS_REAL_TYPE=${{ matrix.float_as_real_type }} -DPLSSVM_ENABLE_FAST_MATH=OFF -DPLSSVM_ENABLE_OPENCL_BACKEND=OFF ..
- name: "Build PLSSVM"
shell: bash
run: |
cd PLSSVM/build
cmake --build . --config ${{ matrix.build_type }}
echo "${GITHUB_WORKSPACE}/PLSSVM/build" >> $GITHUB_PATH
- name: "Run tests"
run: |
cd PLSSVM/build
ctest -j 2 -E ".*executable.*" --output-on-failure -C ${{ matrix.build_type }}

0 comments on commit 643192a

Please sign in to comment.