Skip to content

Merge pull request #5 from polluxio/xtofalex-patch-2 #11

Merge pull request #5 from polluxio/xtofalex-patch-2

Merge pull request #5 from polluxio/xtofalex-patch-2 #11

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
timeout-minutes: 10
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: Set pollux executable permissions
run: chmod +x ${{github.workspace}}/pollux; chmod +x ${{github.workspace}}/zebulon
- name: Copy pollux yaml file
run: cp ${{github.workspace}}/regress/local_test.yaml pollux.yaml
- name: Test
env:
POLLUX_INSTALL: ${{github.workspace}}
run: ${POLLUX_INSTALL}/pollux