Commit 9aaaed90 authored by Cianciosa, Mark's avatar Cianciosa, Mark
Browse files

Merge branch 'build_dep' into 'main'

Fix build system and add github ci.

See merge request !70
parents b94c3ff6 5b9ca19e
Loading
Loading
Loading
Loading
+64 −0
Original line number Diff line number Diff line
name: Continuous Integration Test
on:
    workflow_dispatch:
    push:
jobs:
    ci_test:
        strategy:
            matrix:
                os: [macos-latest, ubuntu-latest]
        runs-on: ${{matrix.os}}
        steps:
            - name: CPU Info Mac
              if: ${{matrix.os == 'macos-latest'}}
              run: |
                sysctl -n machdep.cpu.brand_string
                sysctl -n machdep.cpu.features
                (echo "Number of Cores:"; sysctl -n machdep.cpu.core_count) |tr '\n' '\t' && echo ''
            - name: CPU Info Linux
              if: ${{matrix.os == 'ubuntu-latest'}}
              run: awk '{if ($0=="") exit; print $0}' /proc/cpuinfo
            - name: Clone Repo
              shell: bash
              working-directory: ${{runner.workspace}}
              run: |
                git clone https://github.com/ORNL-Fusion/graph_framework.git ${{runner.workspace}}/graph_framework
                cd ${{runner.workspace}}/graph_framework
                git checkout ${{github.ref_name}}
            - name: Create build directory.
              working-directory: ${{runner.workspace}}/graph_framework
              run: cmake -E make_directory build
            - name: Install Libraries Mac
              if: ${{matrix.os == 'macos-latest'}}
              shell: bash
              run: |
                brew install netcdf
            - name: Install Libraries Linux
              if: ${{matrix.os == 'ubuntu-latest'}}
              shell: bash
              run: |
                sudo apt update
                sudo apt-get install libnetcdf-dev
            - name: Configure CMake Mac
              if: ${{matrix.os == 'macos-latest'}}
              shell: bash
              working-directory: ${{runner.workspace}}/graph_framework/build
              run: cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DUSE_METAL=ON ${{runner.workspace}}/graph_framework
            - name: Configure CMake Linux
              if: ${{matrix.os == 'ubuntu-latest'}}
              shell: bash
              working-directory: ${{runner.workspace}}/graph_framework/build
              run: cmake ${{runner.workspace}}/graph_framework
            - name: Build
              shell: bash
              working-directory: ${{runner.workspace}}/graph_framework/build
              run: make -j3 VERBOSE=1
            - name: Test
              shell: bash
              working-directory: ${{runner.workspace}}/graph_framework/build
              run: make test ARGS=-j3
            - name: Show Log
              if: failure()
              shell: bash
              working-directory: ${{runner.workspace}}/graph_framework/build/Testing/Temporary
              run: cat LastTest.log
+1 −0
Original line number Diff line number Diff line
@@ -251,6 +251,7 @@ add_dependencies (obj.clangSupport pull_llvm)
add_dependencies (arm-common-resource-headers pull_llvm)
add_dependencies (arm-resource-headers pull_llvm)
add_dependencies (aarch64-resource-headers pull_llvm)
add_dependencies (spirv-resource-headers pull_llvm)

add_library (llvm_dep INTERFACE)
target_include_directories (llvm_dep