2020-08-14 08:46:38 -07:00
|
|
|
name: Build
|
2019-09-15 11:19:57 -07:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
mac:
|
2021-10-25 11:40:30 -07:00
|
|
|
runs-on: macos-10.15
|
2019-09-15 11:19:57 -07:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-08-14 08:46:38 -07:00
|
|
|
|
|
|
|
- name: Setup
|
2021-11-21 13:00:55 -08:00
|
|
|
run: brew install libuv sdl2 libpq sdl2_mixer python
|
2020-08-14 08:46:38 -07:00
|
|
|
|
|
|
|
- name: Build
|
2019-09-15 11:19:57 -07:00
|
|
|
run: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2021-10-27 06:40:52 -07:00
|
|
|
cmake .. -DHOT_RELOAD_ANIM=0
|
2019-10-06 03:03:09 -07:00
|
|
|
make -j 2
|
2020-08-14 08:46:38 -07:00
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
cd build
|
2020-08-14 10:45:47 -07:00
|
|
|
ctest -V -R tests-animation$
|
2020-08-30 12:40:20 -07:00
|
|
|
ctest -V -R tests-app$
|
2020-08-14 10:45:47 -07:00
|
|
|
ctest -V -R tests-attrib$
|
2020-08-30 13:36:16 -07:00
|
|
|
ctest -V -R tests-command$
|
2020-08-14 10:45:47 -07:00
|
|
|
ctest -V -R tests-computeshadertool$
|
|
|
|
ctest -V -R tests-cooldown$
|
|
|
|
ctest -V -R tests-core$
|
|
|
|
ctest -V -R tests-eventmgr$
|
2020-08-30 13:24:45 -07:00
|
|
|
ctest -V -R tests-io$
|
2020-08-14 10:45:47 -07:00
|
|
|
ctest -V -R tests-math$
|
2020-08-30 13:24:45 -07:00
|
|
|
ctest -V -R tests-metric$
|
2020-08-14 10:45:47 -07:00
|
|
|
ctest -V -R tests-persistence$
|
|
|
|
ctest -V -R tests-poi$
|
|
|
|
ctest -V -R tests-shadertool$
|
|
|
|
ctest -V -R tests-stock$
|
|
|
|
ctest -V -R tests-util$
|
2020-09-04 14:41:08 -07:00
|
|
|
ctest -V -R tests-uuidutil$
|
2020-08-14 10:45:47 -07:00
|
|
|
ctest -V -R tests-video$
|
|
|
|
ctest -V -R tests-voxedit-util$
|
|
|
|
ctest -V -R tests-voxel$
|
|
|
|
ctest -V -R tests-voxelformat$
|
|
|
|
ctest -V -R tests-voxelgenerator$
|
|
|
|
ctest -V -R tests-voxelrender$
|
|
|
|
ctest -V -R tests-voxelutil$
|
|
|
|
ctest -V -R tests-voxelworld$
|
|
|
|
ctest -V -R tests-voxelworldrender$
|
2020-08-14 08:46:38 -07:00
|
|
|
|
2020-08-02 02:22:50 -07:00
|
|
|
packages:
|
2020-08-13 12:56:19 -07:00
|
|
|
runs-on: ubuntu-20.04
|
2020-08-02 02:22:50 -07:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-08-14 08:46:38 -07:00
|
|
|
|
|
|
|
- name: Setup
|
2020-08-02 02:22:50 -07:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2021-11-14 11:00:04 -08:00
|
|
|
sudo apt-get install cmake debhelper devscripts build-essential lintian libsdl2-dev libuv1-dev libsdl2-mixer-dev postgresql-server-dev-12 libpq-dev libenet-dev opencl-c-headers wayland-protocols pkg-config uuid-dev python3
|
2020-08-14 08:46:38 -07:00
|
|
|
|
|
|
|
- name: Ubuntu
|
|
|
|
run: |
|
2020-08-02 02:22:50 -07:00
|
|
|
debuild -b -ui -uc -us
|
2020-08-13 23:40:33 -07:00
|
|
|
mv ../*.deb .
|
2020-08-14 08:46:38 -07:00
|
|
|
|
|
|
|
- name: Upload the ubuntu artifacts
|
2020-08-02 02:22:50 -07:00
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: debian
|
2020-08-13 23:40:33 -07:00
|
|
|
path: vengi*.deb
|
2020-08-14 08:46:38 -07:00
|
|
|
|
|
|
|
- name: Upload the ubuntu release artifacts
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
uses: Roang-zero1/github-upload-release-artifacts-action@master
|
|
|
|
with:
|
|
|
|
args: vengi*.deb
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
2019-09-15 11:19:57 -07:00
|
|
|
linux:
|
2020-08-13 12:56:19 -07:00
|
|
|
runs-on: ubuntu-20.04
|
2021-02-21 09:01:21 -08:00
|
|
|
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres:13
|
|
|
|
env:
|
2021-03-21 22:43:57 -07:00
|
|
|
POSTGRES_DB: enginetest
|
|
|
|
POSTGRES_PASSWORD: engine
|
2021-02-21 09:01:21 -08:00
|
|
|
POSTGRES_PORT: 5432
|
2021-03-21 22:43:57 -07:00
|
|
|
POSTGRES_USER: vengi
|
2021-02-21 09:01:21 -08:00
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
options: >-
|
|
|
|
--health-cmd pg_isready
|
|
|
|
--health-interval 10s
|
|
|
|
--health-timeout 5s
|
|
|
|
--health-retries 5
|
|
|
|
|
2019-09-15 11:19:57 -07:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-08-14 08:46:38 -07:00
|
|
|
|
|
|
|
- name: Setup
|
2019-09-15 11:19:57 -07:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2021-11-14 11:00:04 -08:00
|
|
|
sudo apt-get install libsdl2-dev postgresql-server-dev-12 libpq-dev libenet-dev opencl-c-headers wayland-protocols pkg-config uuid-dev ninja-build python3
|
2020-08-14 08:46:38 -07:00
|
|
|
|
|
|
|
- name: Linux
|
|
|
|
run: |
|
2019-09-15 11:19:57 -07:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2021-04-25 01:03:43 -07:00
|
|
|
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release
|
2020-10-09 05:34:08 -07:00
|
|
|
cmake --build .
|
2020-08-14 08:46:38 -07:00
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
cd build
|
2020-08-14 10:45:47 -07:00
|
|
|
ctest -V -R tests-animation$
|
2020-08-30 12:40:20 -07:00
|
|
|
ctest -V -R tests-app$
|
2020-08-14 10:45:47 -07:00
|
|
|
ctest -V -R tests-attrib$
|
2020-08-30 13:36:16 -07:00
|
|
|
ctest -V -R tests-command$
|
2020-08-14 10:45:47 -07:00
|
|
|
ctest -V -R tests-computeshadertool$
|
|
|
|
ctest -V -R tests-cooldown$
|
|
|
|
ctest -V -R tests-core$
|
|
|
|
ctest -V -R tests-eventmgr$
|
2020-08-30 13:24:45 -07:00
|
|
|
ctest -V -R tests-io$
|
2020-08-14 10:45:47 -07:00
|
|
|
ctest -V -R tests-math$
|
2020-08-30 13:24:45 -07:00
|
|
|
ctest -V -R tests-metric$
|
2020-08-14 10:45:47 -07:00
|
|
|
ctest -V -R tests-persistence$
|
|
|
|
ctest -V -R tests-poi$
|
|
|
|
ctest -V -R tests-shadertool$
|
|
|
|
ctest -V -R tests-stock$
|
|
|
|
ctest -V -R tests-util$
|
2020-09-04 14:41:08 -07:00
|
|
|
ctest -V -R tests-uuidutil$
|
2020-08-14 10:45:47 -07:00
|
|
|
ctest -V -R tests-video$
|
|
|
|
ctest -V -R tests-voxedit-util$
|
|
|
|
ctest -V -R tests-voxel$
|
|
|
|
ctest -V -R tests-voxelformat$
|
|
|
|
ctest -V -R tests-voxelgenerator$
|
|
|
|
ctest -V -R tests-voxelrender$
|
|
|
|
ctest -V -R tests-voxelutil$
|
|
|
|
ctest -V -R tests-voxelworld$
|
|
|
|
ctest -V -R tests-voxelworldrender$
|
2020-08-14 08:46:38 -07:00
|
|
|
|
2019-09-15 11:19:57 -07:00
|
|
|
windows:
|
2019-10-05 06:50:29 -07:00
|
|
|
runs-on: windows-latest
|
2020-08-14 08:46:38 -07:00
|
|
|
|
2019-09-15 11:19:57 -07:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-08-14 08:46:38 -07:00
|
|
|
|
|
|
|
- name: Setup
|
2021-08-06 06:23:47 -07:00
|
|
|
uses: lukka/run-vcpkg@v6
|
2020-07-14 11:51:32 -07:00
|
|
|
id: runvcpkg
|
|
|
|
with:
|
2021-08-06 06:23:47 -07:00
|
|
|
vcpkgGitCommitId: 2f7a104d4d6f1f3790db929f85a4086aa6973d7f
|
2020-07-14 11:51:32 -07:00
|
|
|
vcpkgTriplet: 'x64-windows'
|
2020-07-18 11:46:02 -07:00
|
|
|
vcpkgArguments: 'libpq'
|
2020-08-14 08:46:38 -07:00
|
|
|
|
|
|
|
- name: Build
|
2019-09-15 11:19:57 -07:00
|
|
|
run: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2021-10-27 06:40:52 -07:00
|
|
|
cmake .. -DCMAKE_BUILD_TYPE=Release -DHOT_RELOAD_ANIM=0
|
2019-10-06 03:03:09 -07:00
|
|
|
cmake --build .
|
2021-10-25 11:47:40 -07:00
|
|
|
|
|
|
|
- name: install
|
|
|
|
run: |
|
2021-10-26 00:53:32 -07:00
|
|
|
cd build
|
2020-05-17 11:11:23 -07:00
|
|
|
cmake --install . --component voxedit --prefix voxedit-install
|
|
|
|
cmake --install . --component mapview --prefix mapview-install
|
|
|
|
cmake --install . --component voxconvert --prefix voxconvert-install
|
2020-08-14 08:46:38 -07:00
|
|
|
|
|
|
|
- name: Tests
|
|
|
|
run: |
|
|
|
|
cd build
|
2020-08-16 02:11:27 -07:00
|
|
|
ctest -V -C Release -R tests-animation$
|
2020-08-30 12:40:20 -07:00
|
|
|
ctest -V -C Release -R tests-app$
|
2020-08-16 02:11:27 -07:00
|
|
|
ctest -V -C Release -R tests-attrib$
|
2020-08-30 13:36:16 -07:00
|
|
|
ctest -V -C Release -R tests-command$
|
2020-08-16 02:11:27 -07:00
|
|
|
ctest -V -C Release -R tests-computeshadertool$
|
|
|
|
ctest -V -C Release -R tests-cooldown$
|
|
|
|
ctest -V -C Release -R tests-core$
|
|
|
|
ctest -V -C Release -R tests-eventmgr$
|
2020-08-30 13:24:45 -07:00
|
|
|
ctest -V -C Release -R tests-io$
|
2020-08-16 02:11:27 -07:00
|
|
|
ctest -V -C Release -R tests-math$
|
2020-08-30 13:24:45 -07:00
|
|
|
ctest -V -C Release -R tests-metric$
|
2020-08-16 02:11:27 -07:00
|
|
|
ctest -V -C Release -R tests-persistence$
|
|
|
|
ctest -V -C Release -R tests-poi$
|
|
|
|
ctest -V -C Release -R tests-shadertool$
|
|
|
|
ctest -V -C Release -R tests-stock$
|
|
|
|
ctest -V -C Release -R tests-util$
|
2020-09-04 14:41:08 -07:00
|
|
|
ctest -V -C Release -R tests-uuidutil$
|
2020-08-16 02:11:27 -07:00
|
|
|
ctest -V -C Release -R tests-video$
|
|
|
|
ctest -V -C Release -R tests-voxedit-util$
|
|
|
|
ctest -V -C Release -R tests-voxel$
|
|
|
|
ctest -V -C Release -R tests-voxelformat$
|
|
|
|
ctest -V -C Release -R tests-voxelgenerator$
|
|
|
|
ctest -V -C Release -R tests-voxelrender$
|
|
|
|
ctest -V -C Release -R tests-voxelutil$
|
|
|
|
ctest -V -C Release -R tests-voxelworld$
|
2020-08-14 08:46:38 -07:00
|
|
|
|
2020-05-14 14:23:19 -07:00
|
|
|
- name: Upload the voxedit artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: voxedit
|
2020-05-17 11:11:23 -07:00
|
|
|
path: build/voxedit-install/
|
2020-08-14 08:46:38 -07:00
|
|
|
|
2020-05-14 14:23:19 -07:00
|
|
|
- name: Upload the mapview artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: mapview
|
2020-05-17 11:11:23 -07:00
|
|
|
path: build/mapview-install/
|
2020-08-14 08:46:38 -07:00
|
|
|
|
2020-05-17 08:42:43 -07:00
|
|
|
- name: Upload the voxconvert artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: voxconvert
|
2020-05-17 11:11:23 -07:00
|
|
|
path: build/voxconvert-install/
|