From e45aed1daa6efac4731ebcde4f16d1840de7f5c9 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 13 Apr 2022 15:20:54 -0700 Subject: [PATCH] drone CI --- .drone.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..15dd581 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,34 @@ +kind: pipeline +type: docker +name: default + +steps: +- name: build-linux + image: thatcosmonaut/moonworks-build + commands: + - git submodule update --recursive --init + - cmake -E make_directory ./build + - cd ./build + - cmake -DCMAKE_C_COMPILER=/usr/bin/clang -S .. -B . + - make + +- name: build-windows + image: thatcosmonaut/moonworks-build + commands: + - git submodule update --recursive --init + - cmake -E make_directory ./windows-build + - cd ./windows-build + - mingw64-cmake -S .. -B . + - make + +- name: gitea_release + image: plugins/gitea-release + settings: + base_url: https://gitea.moonside.games + api_key: + from_secret: gitea_token + files: + - ./build/libWellspring.so + - ./windows-build/Wellspring.dll + when: + event: tag