This commit is contained in:
12
.drone.yml
12
.drone.yml
@@ -7,12 +7,16 @@ steps:
|
|||||||
image: alpine
|
image: alpine
|
||||||
#install make and gcc
|
#install make and gcc
|
||||||
commands:
|
commands:
|
||||||
- apk add build-base ncurses-dev ncurses ncurses-terminfo ncurses-static
|
- apk add build-base ncurses-dev ncurses ncurses-terminfo ncurses-static g++
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- gcc -static -o build/main main.c -l:libncurses.so
|
- gcc -static -o build/main_static_alpine main.c -l:libncurses.so
|
||||||
|
- gcc -o build/main_dynamic main.c -lncurses
|
||||||
artifacts:
|
artifacts:
|
||||||
- name: compiled
|
- name: compiled_static
|
||||||
path: main
|
path: build/main_static_alpine
|
||||||
|
type: file
|
||||||
|
- name: compiled_dynamic
|
||||||
|
path: build/main_dynamic
|
||||||
type: file
|
type: file
|
||||||
- name: gitea_release
|
- name: gitea_release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
|
Reference in New Issue
Block a user