fix: INSTALL.md can now be followed to install grSim on macOS. #55
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: | |
push: | |
branches: | |
- master | |
- windows-github-actions | |
pull_request: | |
jobs: | |
build-linux: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-18.04, ubuntu-20.04 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Update dependencies" | |
run: sudo apt-get update | |
- name: "Install dependencies" | |
run: sudo apt-get install -y build-essential cmake pkg-config qt5-default libqt5opengl5-dev libgl1-mesa-dev libglu1-mesa-dev libprotobuf-dev protobuf-compiler libode-dev libboost-dev | |
- name: "Build" | |
run: mkdir build && cd build && cmake .. && make | |
build-macos: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ macos-10.15, macos-11 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Install dependencies" | |
run: brew tap robotology/formulae && brew install qt5 protobuf robotology/formulae/ode | |
- name: "Build" | |
run: mkdir build && cd build && cmake .. && make | |
env: | |
Qt5_DIR: /usr/local/opt/qt5/lib/cmake/Qt5 | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: make build directory | |
run: mkdir '${{ github.workspace }}/build/' | |
- name: Install dependencies # saves / restores cache to avoid rebuilding dependencies | |
uses: lukka/run-vcpkg@v6 | |
with: | |
setupOnly: false | |
vcpkgGitCommitId: 94ce0dab56f4d8ba6bd631ba59ed682b02d45c46 | |
vcpkgDirectory: c:/vcpkg # folder must reside in c:\ otherwise qt wont install due to long path errors | |
vcpkgTriplet: x64-windows | |
vcpkgArguments: qt5 ode protobuf | |
- name: Run CMake and build | |
working-directory: ${{ github.workspace }}/build/ | |
run: | | |
cmake -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake .. | |
cmake --build . --config Release |