Ignore favicon, optimize builds
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
55f8580e4c
commit
ec527ca9cd
3 changed files with 7 additions and 5 deletions
|
@ -6,14 +6,14 @@ steps:
|
|||
- name: glibc-x86_64
|
||||
image: gcc
|
||||
commands:
|
||||
- make clean && make all
|
||||
- make clean && make CFLAGS=-O3 all
|
||||
- mv dirl dirl-glibc-x86_64
|
||||
|
||||
- name: musl-x86_64
|
||||
image: alpine
|
||||
commands:
|
||||
- apk update && apk add make git build-base linux-headers musl-dev
|
||||
- make clean && make STATIC=-static all
|
||||
- make clean && make CFLAGS="-static -O3" all
|
||||
- mv dirl dirl-musl-x86_64
|
||||
|
||||
- name: publish binaries
|
||||
|
|
3
dirl.c
3
dirl.c
|
@ -246,5 +246,6 @@ dirl_skip(const char* name)
|
|||
|| !strcmp(name, DIRL_HEADER) //
|
||||
|| !strcmp(name, DIRL_ENTRY) //
|
||||
|| !strcmp(name, DIRL_FOOTER) //
|
||||
|| !strcmp(name, DIRL_STYLE); //
|
||||
|| !strcmp(name, DIRL_STYLE) //
|
||||
|| !strcmp(name, FAVICON); //
|
||||
}
|
||||
|
|
5
dirl.h
5
dirl.h
|
@ -9,9 +9,10 @@
|
|||
#include "http.h"
|
||||
|
||||
#define DIRL_HEADER ".header.tpl"
|
||||
#define DIRL_ENTRY ".entry.tpl"
|
||||
#define DIRL_ENTRY ".entry.tpl"
|
||||
#define DIRL_FOOTER ".footer.tpl"
|
||||
#define DIRL_STYLE "style.css"
|
||||
#define DIRL_STYLE "style.css"
|
||||
#define FAVICON "favicon.ico"
|
||||
|
||||
/* Default template definitions
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue