2023-05-28 00:04:55 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build-linux
|
|
|
|
image: thatcosmonaut/moonworks-build
|
|
|
|
commands:
|
|
|
|
- cmake -E make_directory ./build
|
|
|
|
- cd ./build
|
|
|
|
- cmake -DCMAKE_C_COMPILER=/usr/bin/clang -S .. -B .
|
|
|
|
- make
|
2023-05-28 00:17:34 +00:00
|
|
|
- mv ./cramcli ./cramcli-linux-amd64
|
2023-05-28 00:04:55 +00:00
|
|
|
|
|
|
|
- name: build-windows
|
|
|
|
image: thatcosmonaut/moonworks-build
|
|
|
|
commands:
|
|
|
|
- cmake -E make_directory ./windows-build
|
|
|
|
- cd ./windows-build
|
2023-10-06 22:10:55 +00:00
|
|
|
- mingw64-cmake -DBUILD_SHARED_LIBS=OFF -S .. -B .
|
2023-05-28 00:04:55 +00:00
|
|
|
- make
|
|
|
|
|
|
|
|
- name: gitea_release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
base_url: https://gitea.moonside.games
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
files:
|
2023-08-22 18:00:41 +00:00
|
|
|
- ./build/cramcli-linux-amd64
|
2023-05-28 00:04:55 +00:00
|
|
|
- ./windows-build/cramcli.exe
|
|
|
|
when:
|
|
|
|
event: tag
|