Refactor: Update data passing, refine method descriptions and clean up comments #55
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 and Test | |
on: | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
build-and-test-ubuntu: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install third-party apt dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y \ | |
build-essential cmake \ | |
libxmu-dev libxi-dev libgl-dev \ | |
libxinerama-dev libxcursor-dev xorg-dev \ | |
libglu1-mesa-dev pkg-config autoconf automake libtool | |
- name: Install vcpkg | |
run: | | |
git clone https://github.com/Microsoft/vcpkg.git | |
./vcpkg/bootstrap-vcpkg.sh | |
working-directory: /tmp/ | |
- name: Install dependencies for test executables requiring a graphical environment in this ci workflow | |
run: sudo apt-get install -y xvfb | |
- name: Build and Test on Linux | |
run: | | |
# Start Xvfb | |
Xvfb :99 & | |
export DISPLAY=:99 | |
./compile_source_code.sh -CMakeToolchainFile /tmp/vcpkg/scripts/buildsystems/vcpkg.cmake -RunTests | |
working-directory: ./devops/scripts/bash/ | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install third-party choco dependencies | |
run: | | |
choco install cmake | |
- name: Install vcpkg | |
run: | | |
cd $env:TEMP | |
git clone https://github.com/Microsoft/vcpkg.git | |
.\vcpkg\bootstrap-vcpkg.bat | |
- name: Build on Windows | |
shell: pwsh | |
run: | | |
.\compile_source_code.ps1 -CMakeToolchainFile $env:TEMP\vcpkg\scripts\buildsystems\vcpkg.cmake | |
working-directory: .\devops\scripts\ps1\ | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install third-party brew dependencies | |
run: | | |
brew install pkg-config cmake | |
- name: Install vcpkg | |
run: | | |
git clone https://github.com/Microsoft/vcpkg.git | |
./vcpkg/bootstrap-vcpkg.sh | |
working-directory: /tmp/ | |
- name: Build on macOS | |
run: | | |
./compile_source_code.sh -CMakeToolchainFile /tmp/vcpkg/scripts/buildsystems/vcpkg.cmake | |
working-directory: ./devops/scripts/bash/ |