From 1be28c089608dbb6a3144e91afb08372ec6393a5 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Fri, 16 Apr 2021 00:26:38 -0400 Subject: [PATCH] hello CI --- .github/build-unit-tests.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/build-unit-tests.yaml diff --git a/.github/build-unit-tests.yaml b/.github/build-unit-tests.yaml new file mode 100644 index 0000000..2e6c1ad --- /dev/null +++ b/.github/build-unit-tests.yaml @@ -0,0 +1,31 @@ +name: Unit Test CI + +on: [push,pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-20.04, macos-latest] + + steps: + - uses: actions/checkout@v1 + with: + submodules: recursive + fetch-depth: 0 + + - name: Discover cores + if: ${{ matrix.os != 'macos-latest' }} + run: lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)' + + - name: Print Compiler version + # NOTE: on mac, this is actually symlink'd to clang, not gcc, but that's ok - we want to build on both + working-directory: . + run: gcc -v + + - name: Build Tests + working-directory: ./unit_tests/ + run: make -j4 +