Skip to content

Add boost to LD_LIBRARY_PATH #206

Add boost to LD_LIBRARY_PATH

Add boost to LD_LIBRARY_PATH #206

Workflow file for this run

name: build
# When the 'permissions' key is specified, unspecified permission scopes (e.g.,
# actions, checks, etc.) are set to no access (none).
permissions:
contents: read
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
# Run weekly (* is a special character in YAML, so quote the string)
- cron: '0 0 * * 0'
workflow_dispatch:
inputs:
# When git-ref is empty, HEAD will be checked out.
git-ref:
description: Optional git ref (branch, tag, or full SHA)
required: false
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
compiler: [g++, clang++]
exclude:
- os: macos-latest
compiler: g++
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# When the ref is empty, HEAD will be checked out.
ref: ${{ github.event.inputs.git-ref }}
- name: Install Dependencies (ubuntu)
if: matrix.os == 'ubuntu-latest'
run: sudo apt install libboost-test-dev
- name: Install Dependencies (macos)
if: matrix.os == 'macos-latest'
run: |
brew install boost
echo "CPLUS_INCLUDE_PATH=/opt/homebrew/Cellar/boost/1.84.0_1/include:${CPLUS_INCLUDE_PATH}" >> "${GITHUB_ENV}"
echo "LD_LIBRARY_PATH=/opt/homebrew/Cellar/boost/1.84.0_1/lib:${LD_LIBRARY_PATH}" >> "${GITHUB_ENV}"
- name: Compile (${{ matrix.compiler }})
env:
CXX: ${{ matrix.compiler }}
run: make --directory tests
- name: Test
run: tests/test_revdoor