-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
44 lines (39 loc) · 944 Bytes
/
.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
image: peterzuger/arch-dev
stages:
- prepare
- prebuild
- build
- test
# global variables
variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/c-modules/tlc5947-rgb-micropython
CMODULES: $CI_BUILDS_DIR/c-modules
fetch-micropython:
stage: prepare
script:
- git clone --recurse-submodules https://github.com/micropython/micropython.git
artifacts:
expose_as: 'micropython-repo'
paths:
- micropython/
exclude:
- micropython/.git/**/*
- micropython/lib/pico-sdk/**/*
- micropython/lib/tinyusb/**/*
mpy-cross:
stage: prebuild
script:
- make -C micropython/mpy-cross
artifacts:
expose_as: 'mpy-cross'
paths:
- micropython/mpy-cross/mpy-cross
dependencies:
- fetch-micropython
stm32:
stage: build
script:
- make -C micropython/ports/stm32 USER_C_MODULES=$CMODULES CFLAGS_EXTRA="-DMODULE_TLC5947_ENABLED=1"
dependencies:
- mpy-cross
- fetch-micropython