c-gaborator/.drone.yml
DataHoarder 13f6e179e3
All checks were successful
continuous-integration/drone/push Build is passing
Add AVX2 std::abs, clang build
2022-07-15 14:07:27 +02:00

41 lines
1.3 KiB
YAML

---
kind: pipeline
type: docker
name: default-gcc
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build
image: debian:bullseye
commands:
- DEBIAN_FRONTEND=noninteractive apt update
- DEBIAN_FRONTEND=noninteractive apt install -y g++ gcc cmake make
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="-march=native" -DCMAKE_C_FLAGS_RELEASE="-march=native" -DCMAKE_INSTALL_PREFIX="/usr"
- make -j$(nproc)
- make install
---
kind: pipeline
type: docker
name: default-clang
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build
image: debian:bullseye
commands:
- DEBIAN_FRONTEND=noninteractive apt update
- DEBIAN_FRONTEND=noninteractive apt install -y clang cmake make
- update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
- update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang 100
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="-march=native" -DCMAKE_C_FLAGS_RELEASE="-march=native" -DCMAKE_INSTALL_PREFIX="/usr"
- make -j$(nproc)
- make install
...