2021-01-05 07:31:56 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2021-02-27 21:10:20 +00:00
|
|
|
- name: build-linux
|
2021-02-27 23:06:38 +00:00
|
|
|
image: thatcosmonaut/moonworks-build
|
2021-01-05 07:31:56 +00:00
|
|
|
commands:
|
|
|
|
- git submodule update --recursive --init
|
2021-02-27 21:13:42 +00:00
|
|
|
- cmake -E make_directory ./build
|
2021-01-05 07:31:56 +00:00
|
|
|
- cd ./build
|
2021-02-27 21:13:42 +00:00
|
|
|
- cmake -DCMAKE_C_COMPILER=/usr/bin/clang -S .. -B .
|
2021-01-05 07:31:56 +00:00
|
|
|
- make
|
2021-02-27 21:10:20 +00:00
|
|
|
|
|
|
|
- name: build-windows
|
2021-02-27 23:06:38 +00:00
|
|
|
image: thatcosmonaut/moonworks-build
|
2021-02-27 21:10:20 +00:00
|
|
|
commands:
|
|
|
|
- git submodule update --recursive --init
|
2021-02-27 21:37:19 +00:00
|
|
|
- cmake -E make_directory ./windows-build
|
|
|
|
- cd ./windows-build
|
2021-02-27 21:35:13 +00:00
|
|
|
- mingw64-cmake -S .. -B .
|
2021-02-27 21:11:37 +00:00
|
|
|
- make
|
2021-02-27 23:29:07 +00:00
|
|
|
|
|
|
|
- name: gitea_release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
base_url: https://gitea.moonside.games
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
files:
|
|
|
|
- ./build/libRefresh.so
|
2021-02-27 23:35:46 +00:00
|
|
|
- ./windows-build/Refresh.dll
|
2021-02-27 23:29:07 +00:00
|
|
|
when:
|
|
|
|
event: tag
|