2020-08-17 13:10:33 +08:00
|
|
|
language: cpp
|
2021-03-09 13:02:13 +08:00
|
|
|
# Default scripts, which may be overridden by some jobs
|
|
|
|
|
before_script:
|
|
|
|
|
- mkdir -p build
|
|
|
|
|
- cd build
|
2021-07-08 20:16:48 +08:00
|
|
|
- cmake -DCMAKE_BUILD_TYPE:STRING=Debug ..
|
2021-03-09 13:02:13 +08:00
|
|
|
script:
|
|
|
|
|
- cmake --build . --config Debug
|
|
|
|
|
- ctest -V
|
|
|
|
|
- cmake --build . --config Debug --target cesium-native-docs
|
2020-12-03 13:05:56 +08:00
|
|
|
jobs:
|
2020-08-17 13:10:33 +08:00
|
|
|
include:
|
2021-03-09 13:05:09 +08:00
|
|
|
- name: Check Source Formatting
|
2021-03-09 13:02:13 +08:00
|
|
|
os: linux
|
|
|
|
|
dist: focal
|
2021-05-12 21:06:44 +08:00
|
|
|
git:
|
|
|
|
|
submodules: false
|
2021-03-09 13:02:13 +08:00
|
|
|
before_script:
|
|
|
|
|
script:
|
2021-03-09 13:05:09 +08:00
|
|
|
- npm install
|
2021-03-09 13:15:27 +08:00
|
|
|
- npm run format -- --dry-run -Werror
|
2021-03-04 13:08:32 +08:00
|
|
|
- name: Windows + VS2017
|
|
|
|
|
os: windows
|
2021-03-04 14:18:48 +08:00
|
|
|
install:
|
2022-01-04 03:43:43 +08:00
|
|
|
- choco install doxygen.install --version=1.9.2
|
2023-03-03 00:16:24 +08:00
|
|
|
- choco install nasm
|
2021-03-09 13:02:13 +08:00
|
|
|
before_script:
|
2021-03-04 14:18:48 +08:00
|
|
|
- mkdir -p build
|
|
|
|
|
- cd build
|
|
|
|
|
- cmake .. -A x64
|
2020-12-03 13:05:56 +08:00
|
|
|
- name: Windows + VS2019
|
|
|
|
|
os: windows
|
2020-08-17 13:10:33 +08:00
|
|
|
install:
|
|
|
|
|
- choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64"
|
2022-01-04 03:43:43 +08:00
|
|
|
- choco install doxygen.install --version=1.9.2
|
2023-03-03 00:16:24 +08:00
|
|
|
- choco install nasm
|
2020-12-03 13:05:56 +08:00
|
|
|
- name: Linux + GCC
|
|
|
|
|
os: linux
|
2020-12-03 13:14:10 +08:00
|
|
|
dist: focal
|
2020-08-17 13:10:33 +08:00
|
|
|
install:
|
2021-08-23 11:40:10 +08:00
|
|
|
- # As of 2021-08-23, the server listed in the rabbitmq PPA has an expired certificate
|
|
|
|
|
- # and breaks our ability to update. We don't need it, so remove it.
|
|
|
|
|
- sudo rm /etc/apt/sources.list.d/rabbitmq.list
|
2020-08-17 13:10:33 +08:00
|
|
|
- sudo apt-get update
|
2023-03-03 00:16:24 +08:00
|
|
|
- sudo apt-get install cmake doxygen nasm
|
2020-12-03 13:05:56 +08:00
|
|
|
- name: Linux + Clang
|
|
|
|
|
os: linux
|
2020-12-03 13:14:10 +08:00
|
|
|
dist: focal
|
2020-12-03 14:24:05 +08:00
|
|
|
# We're using Clang 10 instead of the default (Clang 7) because of std::variant related failures
|
|
|
|
|
# on Clang 7, possibly related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90397
|
2020-12-03 13:05:56 +08:00
|
|
|
install:
|
2021-08-23 11:40:10 +08:00
|
|
|
- # As of 2021-08-23, the server listed in the rabbitmq PPA has an expired certificate
|
|
|
|
|
- # and breaks our ability to update. We don't need it, so remove it.
|
2021-08-23 11:34:43 +08:00
|
|
|
- sudo rm /etc/apt/sources.list.d/rabbitmq.list
|
2020-12-03 13:05:56 +08:00
|
|
|
- sudo apt-get update
|
2023-03-03 00:16:24 +08:00
|
|
|
- sudo apt-get install clang-10 cmake doxygen nasm
|
2020-12-03 14:24:05 +08:00
|
|
|
env:
|
|
|
|
|
- CC=clang-10
|
|
|
|
|
- CXX=clang++-10
|
2021-11-12 16:36:22 +08:00
|
|
|
- name: macOS
|
|
|
|
|
os: osx
|
|
|
|
|
osx_image: xcode12
|
2021-11-12 18:29:52 +08:00
|
|
|
script:
|
|
|
|
|
- cmake --build . --config Debug
|
2021-11-25 08:43:52 +08:00
|
|
|
- ctest -V
|
2021-11-12 18:54:05 +08:00
|
|
|
- # Doc build doesn't work on Mac (missing Doxygen). Let's just skip it.
|
|
|
|
|
- #cmake --build . --config Debug --target cesium-native-docs
|