-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
25 lines (24 loc) · 1.05 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
stages:
- build
build-arm:
image: spacedot/build-arm
stage: build
script:
- mkdir conan-build
- conan profile detect --force
- cp conan-arm-profile /root/.conan2/profiles/
- conan remote add conan https://artifactory.spacedot.gr/artifactory/api/conan/conan
- conan remote login -p $CONAN_PASSWORD conan $CONAN_USER
- cd lib
- git clone https://gitlab.com/acubesat/obc/cross-platform-software.git
- cd cross-platform-software && git checkout campaign-obc
- cd ..
- git clone https://gitlab.com/acubesat/obc/atsam-component-drivers.git
- cd atsam-component-drivers && git checkout NAND-implementation
- cd ..
- cd cross-platform-software && git submodule update --init --recursive
- cd ..
- cd ..
- conan install . --output-folder conan-build --build=missing -pr conan-arm-profile
- cmake . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=conan-build/build/Debug/generators/conan_toolchain.cmake -DCMAKE_CXX_COMPILER="arm-none-eabi-g++" -DCMAKE_C_COMPILER="arm-none-eabi-gcc"
- make -j$(nproc)