-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
93 lines (82 loc) · 2.04 KB
/
.gitlab-ci.yml
File metadata and controls
93 lines (82 loc) · 2.04 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
workflow:
auto_cancel:
on_new_commit: conservative # the default behavior
variables:
DEBIAN_FRONTEND: noninteractive
ESP_IDF_SRC_DIR: $CI_PROJECT_DIR/esp-idf
cache:
key: "$CI_PROJECT_ID-esp-idf-v551"
paths:
- ${ESP_IDF_SRC_DIR}
policy: pull-push
when: on_success
stages:
- code_format
- docs
- build
- release
code-format:
stage: code_format
interruptible: true
before_script:
- export PATH="$HOME/.local/bin:$PATH"
script:
- make -C m5stack submodules
- sudo apt-get update -qy
- sudo apt-get install build-essential python3 python3-pip python-is-python3 cmake -y
- source tools/ci.sh && ci_code_formatting_setup
- source tools/ci.sh && ci_code_formatting_run
- git diff --exit-code
tags:
- uiflow-docs
build-job:
stage: build
interruptible: true
script:
- sudo apt-get update -qy
- sudo apt-get install git wget flex bison gperf quilt python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 locales -y
- source tools/ci.sh && ci_esp32_idf551_setup
- source tools/ci.sh && ci_esp32_nightly_build
artifacts:
paths:
- m5stack/build-*/uiflow-*-*.bin
- third-party/build-*/uiflow-*-*.bin
tags:
- uiflow-firmware
build-docs:
stage: docs
interruptible: true
script:
- echo "Building the documentation..."
- cd docs
- python3 -m venv .
- source bin/activate
- pip3 install -r requirements.txt
- make zh
- make en
- cd -
artifacts:
paths:
- docs/build/
tags:
- uiflow-docs
release_job:
stage: release
script:
- echo "Releasing the M5Burn..."
- sudo apt install pipx -y
- pipx install uv
- pipx ensurepath
- export PATH="$PATH:$HOME/.local/bin"
- uv venv
- source .venv/bin/activate
- uv pip install requests
- python ./tools/release.py
only:
refs:
- tags
variables:
- $CI_COMMIT_TAG =~ /^release\/[0-9]+\.[0-9]+\.[0-9]+$/
- $CI_COMMIT_REF_SLUG == "develop_m5things"
tags:
- uiflow-firmware