c-gaborator/.drone.yml

43 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2022-07-13 15:35:21 +00:00
---
kind: pipeline
type: docker
2022-07-15 12:07:27 +00:00
name: default-gcc
2022-07-13 15:35:21 +00:00
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)
2023-10-15 14:47:12 +00:00
- ./test ../test.raw
2022-07-13 15:35:21 +00:00
- make install
2022-07-15 12:07:27 +00:00
---
kind: pipeline
type: docker
name: default-clang
2022-07-13 15:35:21 +00:00
2022-07-15 12:07:27 +00:00
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)
2023-10-15 14:47:12 +00:00
- ./test ../test.raw
2022-07-15 12:07:27 +00:00
- make install
...