forked from satiator/satiator-menu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
28 lines (27 loc) · 876 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
build:
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
tags:
- c2-maker
script:
- "rm -rf iapetus-build newlib-build"
- "make clean"
- "make VERSION=$CI_COMMIT_REF_SLUG"
- 'cd out; NUM=$(if [ "${CI_COMMIT_REF_SLUG}" -eq "${CI_COMMIT_REF_SLUG}" ]; then printf %06d ${CI_COMMIT_REF_SLUG}; else echo ${CI_COMMIT_REF_SLUG}; fi); zip satiator_menu${NUM}.zip menu.bin; mv satiator_menu${NUM}.zip ..'
artifacts:
expire_in: 100 years
paths:
- out/menu.bin
- out/menu.map
- out/menu.elf
- satiator_menu*.zip
deploy:
stage: deploy
only:
- /^\d+$/
tags:
- c2-maker
script:
- 'ln -sf satiator_menu*.zip latest.zip'
- 'rsync -l latest.zip satiator_menu*.zip CHANGELOG [email protected]:menu/'