This commit is contained in:
12
.drone.yml
12
.drone.yml
@@ -7,12 +7,16 @@ steps:
|
||||
image: alpine
|
||||
#install make and gcc
|
||||
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
|
||||
- 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:
|
||||
- name: compiled
|
||||
path: main
|
||||
- name: compiled_static
|
||||
path: build/main_static_alpine
|
||||
type: file
|
||||
- name: compiled_dynamic
|
||||
path: build/main_dynamic
|
||||
type: file
|
||||
- name: gitea_release
|
||||
image: plugins/gitea-release
|
||||
|
Reference in New Issue
Block a user