update download links #149
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
if: ${{ github.repository == 'Netflix-Skunkworks/spectatord' }} | |
runs-on: ubuntu-latest | |
env: | |
BUILD_DIR: "cmake-build" | |
BUILD_TYPE: "Debug" | |
CC: "gcc-11" | |
CXX: "g++-11" | |
LANG: "en_US.UTF-8" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Conan+Cmake Cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.conan | |
~/work/spectatord/spectatord/cmake-build | |
key: ${{ runner.os }}-conan-cmake | |
- name: Install System Dependencies | |
run: | | |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
sudo apt-get update && sudo apt-get install -y binutils-dev g++-11 libiberty-dev | |
echo "==== cmake ====" | |
cmake -version | |
echo "==== python ====" | |
python3 -V | |
echo "==== conan ====" | |
pip install -r requirements.txt | |
conan --version | |
if [[ ! -f ~/.conan/profiles/default ]]; then conan profile new default --detect; fi | |
conan profile update settings.compiler.libcxx=libstdc++11 default | |
- name: Install Project Dependencies | |
run: | | |
if [[ "$BUILD_TYPE" == "Debug" ]]; then | |
conan install . --build --install-folder $BUILD_DIR --profile ./sanitized | |
else | |
conan install . --build=missing --install-folder $BUILD_DIR | |
fi | |
- name: Install Source Dependencies | |
run: | | |
NFLX_INTERNAL=OFF conan source . | |
- name: Generate Version | |
run: | | |
tools/generate_version.sh > spectator/version.h | |
- name: Build spectatord | |
run: | | |
cd $BUILD_DIR | |
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DNFLX_INTERNAL=OFF .. | |
cmake --build . | |
echo "==== ldd ====" | |
ldd bin/spectatord_main || true | |
- name: Test spectatord | |
run: | | |
cd $BUILD_DIR | |
GTEST_COLOR=1 ctest --verbose |