Skip to content

Artifact branch (#79) #203

Artifact branch (#79)

Artifact branch (#79) #203

Workflow file for this run

name: Cmake fast
on:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master", "dev" ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Cache dependencies
id: cache-all-deps
uses: actions/cache@v3
env:
cache-name: cache-dependencies
with:
path: ~/.distribicom_installs
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: install deps
continue-on-error: true
run: bash ${{github.workspace}}/scripts/compile_install_scripts/deps.sh
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUSE_PREINSTALLED_GRPC=ON -DUSE_PRECOMPILED_SEAL=ON -D CMAKE_PREFIX_PATH=~/.distribicom_installs
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build
- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --test-dir test