2021-08-29 09:35:37 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
type: docker
|
|
|
|
steps:
|
2021-08-29 09:47:10 +00:00
|
|
|
- name: submodules
|
2021-08-29 09:47:51 +00:00
|
|
|
image: deukhoofd/linux64builder
|
2021-08-29 09:47:10 +00:00
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
2021-08-29 09:35:37 +00:00
|
|
|
- name: build-release-linux
|
|
|
|
image: deukhoofd/linux64builder
|
|
|
|
environment:
|
|
|
|
CC: /usr/bin/clang
|
|
|
|
CXX: /usr/bin/clang++
|
|
|
|
commands:
|
2021-10-23 12:51:57 +00:00
|
|
|
- cmake -GNinja -DCMAKE_BUILD_TYPE=Release . -B build-release
|
2021-08-29 09:35:37 +00:00
|
|
|
- cmake --build build-release --target all -- -j 4
|
|
|
|
- name: build-release-windows
|
|
|
|
image: deukhoofd/windowsbuilder
|
2021-10-23 12:48:04 +00:00
|
|
|
environment:
|
|
|
|
CHOST: x86_64-w64-mingw32
|
|
|
|
AR: x86_64-w64-mingw32-ar
|
|
|
|
AS: x86_64-w64-mingw32-as
|
|
|
|
RANLIB: x86_64-w64-mingw32-ranlib
|
|
|
|
CC: x86_64-w64-mingw32-gcc
|
|
|
|
CXX: x86_64-w64-mingw32-g++
|
|
|
|
STRIP: x86_64-w64-mingw32-strip
|
|
|
|
RC: x86_64-w64-mingw32-windres
|
2021-08-29 09:35:37 +00:00
|
|
|
commands:
|
2021-10-23 12:51:57 +00:00
|
|
|
- cmake -GNinja -DCMAKE_BUILD_TYPE=Release . -B build-release-windows -DWINDOWS=ON -D CMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc -D CMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++
|
2021-08-29 09:35:37 +00:00
|
|
|
- cmake --build build-release-windows --target all -- -j 4
|
|
|
|
- name: gitea_release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
base_url: https://git.p-epsilon.com/
|
|
|
|
files:
|
|
|
|
- build-release/PokemonScriptTester
|
|
|
|
- build-release-windows/PokemonScriptTester.exe
|
|
|
|
when:
|
|
|
|
event: tag
|