Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocosta97 committed Jun 2, 2024
1 parent a337400 commit f25d71e
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f25d71e

Please sign in to comment.