25 lines
596 B
YAML
25 lines
596 B
YAML
kind: pipeline
|
|
name: mazegame_compiler
|
|
type: docker
|
|
steps:
|
|
- name: compile main.c
|
|
description: Check if the code is compiling
|
|
image: alpine
|
|
#install make and gcc
|
|
commands:
|
|
- apk add build-base ncurses-dev
|
|
- mkdir build
|
|
- gcc -static -o build/main main.c -lncurses -ltinfo
|
|
artifacts:
|
|
- name: compiled
|
|
path: main
|
|
type: file
|
|
- name: gitea_release
|
|
image: plugins/gitea-release
|
|
settings:
|
|
api_key:
|
|
from_secret: gitea_api_key
|
|
base_url: https://brn.systems:3000
|
|
files: build/*
|
|
when:
|
|
event: tag |