Skip to content

fix an issue where it fails to detect the number of cores on GitHub CI #7

fix an issue where it fails to detect the number of cores on GitHub CI

fix an issue where it fails to detect the number of cores on GitHub CI #7

Workflow file for this run

name: build
on: [push, pull_request]
# push:
# branches: [master, develop]
# pull_request:
# branches: [master, develop]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
# macos:
# name: macos / clang
# runs-on: macos-10.15
# env:
# CC: clang
# steps:
# - uses: actions/checkout@v2
# - name: Prepare1
# run: brew install gcc glib google-perftools libomp
# - name: Prepare2
# run: bash scripts/setup.sh
# - name: Configure CMake
# run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
# - name: build
# run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
# - name: Run
# continue-on-error: true
# run: make test
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prepare
run: bash scripts/install_dependency.sh
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}
selfhosted:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_GLCACHE=on -DENABLE_LRB=on
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} -j4