mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
dc7323ff34
* add gitlab config file for CD/CI * formatting * Update readme to display CI badge * Replace designated initializers with aggregate initializers * CD/CI for mac * use git fetch for cli instead of clone * CD/CI for windows
54 lines
937 B
YAML
54 lines
937 B
YAML
variables:
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
GIT_STRATEGY: fetch
|
|
|
|
stages:
|
|
- build
|
|
- test
|
|
|
|
build:windows:
|
|
tags:
|
|
- windows
|
|
stage: build
|
|
script:
|
|
- cat /proc/version
|
|
- make release-static-win64
|
|
artifacts:
|
|
paths:
|
|
- "build/release/bin"
|
|
|
|
build:osx:
|
|
tags:
|
|
- osx
|
|
stage: build
|
|
script:
|
|
- sw_vers
|
|
- source ~/Builds/loki_env.sh
|
|
- make -j4 release-static-mac-x86_64
|
|
artifacts:
|
|
paths:
|
|
- "build/release/bin"
|
|
|
|
build:linux:
|
|
image: registry.gitlab.com/lokiproject/loki:latest
|
|
tags:
|
|
- ubuntu
|
|
stage: build
|
|
script:
|
|
# print our runner distro
|
|
- cat /proc/version
|
|
# print the current commit hash
|
|
- echo $CI_COMMIT_SHA
|
|
- make -j$THREAD_COUNT release-static
|
|
artifacts:
|
|
paths:
|
|
- "build/release/bin"
|
|
# disable cache to ensure reproducible builds
|
|
# cache:
|
|
# paths:
|
|
# - "build"
|
|
|
|
# test:
|
|
# stage: test
|
|
# script:
|
|
# - ./test/testall
|