summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVittorio Romeo <vittorio.romeo@outlook.com>2020-07-23 15:42:48 +0100
committerVittorio Romeo <vittorio.romeo@outlook.com>2020-07-23 15:42:48 +0100
commitafb35666b6d3659b69f8290457f36cda540f7649 (patch)
tree41b8bc588055988cd7811b157e0ccea7f853901c
parent0c9525c5db2a49fe06b30e1ee30c007aa93c3ad6 (diff)
parent4eae96a47a3c3e51a3236fac13c62201b755b403 (diff)
Merge branch 'master' of https://github.com/SuperV1234/SSVOpenHexagon into replay_wipwip_deprecated
-rw-r--r--.github/workflows/ci.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..dd168424
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,40 @@
+name: CI
+
+# Trigger this workflow on push or pull request
+on: [push, pull_request]
+
+jobs:
+ build:
+ name: Build (ubuntu-20.04)
+
+ runs-on: ubuntu-20.04
+
+ env:
+ CXXFLAGS: -I/usr/local/include/SFML -std=c++2a
+ LDFLAGS: -L/usr/local/lib
+
+ steps:
+ - uses: actions/checkout@v1
+ with:
+ submodules: recursive
+
+ - name: Install dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y ninja-build libsfml-dev libx11-dev libxrandr-dev libudev-dev libopenal-dev libvorbis-dev libflac-dev
+
+ - name: CMake configure
+ run: |
+ cd build
+ cmake -GNinja -DCMAKE_BUILD_TYPE=RELEASE ..
+ - name: Build
+ run: ninja -C build
+
+ - name: Copy artifacts
+ run: cp build/SSVOpenHexagon build/OHWorkshopUploader _RELEASE
+
+ - name: Upload artifacts
+ uses: actions/upload-artifact@v1
+ with:
+ name: OpenHexagon-Linux
+ path: _RELEASE