21 lines
437 B
YAML
21 lines
437 B
YAML
image: gcc
|
|
|
|
build:
|
|
stage: build
|
|
# Install dependencies
|
|
before_script:
|
|
- apt update && apt -y install cmake libgmp-dev
|
|
# Build the project
|
|
script:
|
|
- cd build/
|
|
- cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
- make
|
|
# Find the resulting binary
|
|
artifacts:
|
|
paths:
|
|
- build/indivisible
|
|
# Cache .o files for faster compiling
|
|
cache:
|
|
paths:
|
|
- "*.o"
|