Skip to content

Merge pull request #4 from polluxio/xtofalex-patch-1 #5

Merge pull request #4 from polluxio/xtofalex-patch-1

Merge pull request #4 from polluxio/xtofalex-patch-1 #5

name: test_local_mode
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
# install dependencies
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -yq cmake g++ protobuf-compiler-grpc libgrpc++-dev
- 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}}
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- uses: robinraju/release-downloader@v1.8
with:
latest: true
fileName: "*"
- name: Test
env:
POLLUX_INSTALL: ${{github.workspace}}
run: ${POLLUX_INSTALL}/pollux