Add .gitlab-ci.yml

This commit is contained in:
Franck STAUFFER 2020-08-04 09:40:01 +02:00
parent 423b3e1183
commit 5aa52b2fcc
Signed by: franck.stauffer
GPG Key ID: AAF5A94045CEC261
2 changed files with 16 additions and 1 deletions

15
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,15 @@
image: debian:stable-slim
build:
before_script:
- apt-get -qq update
- apt-get install build-essential libsdl2-mixer-dev libsdl2-dev
script:
- make
artifacts:
name: "generic-x86_64-build"
paths:
- "bin/chip8"
- "resources/buzzer.wav"
expire_in: 1 week

View File

@ -1,5 +1,5 @@
CPPFLAGS = -D_DEFAULT_SOURCE -D_FOTIFY_SOURCE=2 CPPFLAGS = -D_DEFAULT_SOURCE -D_FOTIFY_SOURCE=2
CFLAGS = $(CPPFLAGS) -std=c99 -pedantic -Wall -Wextra -O2 -fstack-protector -flto -fPIE -pipe CFLAGS = $(CPPFLAGS) -std=c99 -pedantic -Wall -Wextra -mtune=generic -march=x86-64 -O2 -fstack-protector -flto -fPIE -pipe
LDFLAGS = -Wl,-z,relro,-z,now,-O2,--strip-all -lSDL2 -lSDL2_mixer -flto -pie LDFLAGS = -Wl,-z,relro,-z,now,-O2,--strip-all -lSDL2 -lSDL2_mixer -flto -pie
default: bin obj bin/chip8 default: bin obj bin/chip8