mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
1a54be06cd
Have one script per build. This means more duplication between the scripts, but it's much easier to understand and to run locally.
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
version: 2
|
|
|
|
workflows:
|
|
version: 2
|
|
build_linux:
|
|
jobs:
|
|
- x86_64
|
|
|
|
jobs:
|
|
x86_64:
|
|
working_directory: ~/work
|
|
docker:
|
|
- image: ubuntu
|
|
|
|
steps:
|
|
- checkout
|
|
- run: apt update
|
|
- run: apt install -y --no-install-recommends
|
|
clang
|
|
cmake
|
|
libconfig-dev
|
|
libgtest-dev
|
|
libopus-dev
|
|
libsodium-dev
|
|
libvpx-dev
|
|
ninja-build
|
|
pkg-config
|
|
- run: . .travis/flags-clang.sh;
|
|
add_flag -fsanitize=address;
|
|
cmake -H. -B_build -GNinja
|
|
-DCMAKE_C_FLAGS="$C_FLAGS"
|
|
-DCMAKE_CXX_FLAGS="$CXX_FLAGS"
|
|
-DCMAKE_EXE_LINKER_FLAGS="$LD_FLAGS"
|
|
-DCMAKE_SHARED_LINKER_FLAGS="$LD_FLAGS"
|
|
-DCMAKE_INSTALL_PREFIX:PATH="$PWD/_install"
|
|
-DTRACE=ON
|
|
-DMUST_BUILD_TOXAV=ON
|
|
-DSTRICT_ABI=ON
|
|
-DTEST_TIMEOUT_SECONDS=120
|
|
-DUSE_IPV6=OFF
|
|
- run: cd _build && ninja install -j$(nproc)
|
|
- run: cd _build && ctest -j50 --output-on-failure
|