Set max distance to 1000 #33
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: Windows build | |
on: [push] | |
env: | |
BUILD_CONFIGURATION: Release | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
env: | |
POWERSHELL_TELEMETRY_OPTOUT: 1 | |
strategy: | |
fail-fast: false | |
matrix: | |
toolset: [v142] | |
configuration: [Release] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: CMake generate | |
run: cmake -T ${{ matrix.toolset }} -A Win32 -B build | |
- name: Build | |
run: cmake --build build -j $env:NUMBER_OF_PROCESSORS --config ${{ matrix.configuration }} | |
- uses: actions/upload-artifact@v2 | |
if: matrix.toolset == 'v141_xp' | |
with: | |
name: openag-${{ runner.os }}-${{ matrix.configuration }} | |
path: build\${{ matrix.configuration }}\client.dll | |
if-no-files-found: error | |
build-linux-gcc: | |
name: build-linux (gcc-${{ matrix.gcc-ver }}, ${{ matrix.configuration }}) | |
runs-on: ubuntu-18.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
gcc-ver: [11] | |
configuration: [Release] | |
env: | |
CC: gcc-${{ matrix.gcc-ver }} | |
CXX: g++-${{ matrix.gcc-ver }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup | |
run: | | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt-get update | |
sudo apt-get install -y g++-${{ matrix.gcc-ver }}-multilib libgl-dev ninja-build rapidjson-dev | |
- name: CMake generate | |
run: cmake -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -B build | |
- name: Build | |
working-directory: build | |
run: ninja | |
- uses: actions/upload-artifact@v2 | |
if: matrix.gcc-ver == '11' | |
with: | |
name: openag-${{ runner.os }}-${{ matrix.configuration }} | |
path: build/client.so | |
if-no-files-found: error | |
build-linux-clang: | |
name: build-linux (clang-${{ matrix.clang-ver }}, ${{ matrix.configuration }}) | |
runs-on: ubuntu-18.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
clang-ver: [12] # #.0 is interpreted as integer without quotation marks | |
configuration: [Release] | |
env: | |
CC: clang-${{ matrix.clang-ver }} | |
CXX: clang++-${{ matrix.clang-ver }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup | |
run: | | |
if [ '${{ matrix.clang-ver }}' -ge '11' ]; then | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main' | |
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main' | |
fi | |
sudo apt-get update | |
sudo apt-get install -y clang-${{ matrix.clang-ver }} g++-multilib libgl-dev ninja-build rapidjson-dev | |
- name: CMake generate | |
run: cmake -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -B build | |
- name: Build | |
working-directory: build | |
run: ninja |