diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 440eba8..3aabfb7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,11 +2,9 @@ name: build on: push: - branches: [master] + branches: [main] pull_request: - branches: [master] - workflow_dispatch: - branches: [master] + branches: [main] env: BUILD_TYPE: Release @@ -22,10 +20,18 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive - + - name: Set up Boost for Ubuntu + if: matrix.os == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y libboost-all-dev + - name: Set up Boost for macOS + if: matrix.os == 'macos-latest' + run: | + brew update + brew install boost - name: Create Build Environment run: cmake -E make_directory ${{runner.workspace}}/build - - name: Configure CMake shell: bash working-directory: ${{runner.workspace}}/build @@ -35,8 +41,7 @@ jobs: else export CC=clang CXX=clang++ fi - cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DUSE_BOOST=OFF - + cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_BENCHMARKS=OFF - name: Build working-directory: ${{runner.workspace}}/build shell: bash