Skip to content
Permalink
Browse files
Switch from Travis-CI to Github Actions
  • Loading branch information
sfan5 committed Aug 27, 2021
1 parent fd4c5dd commit f26070ef4f455f40df129cdb9cae11c1dcb3198f
Showing with 70 additions and 34 deletions.
  1. +51 −0 .github/workflows/build.yml
  2. +0 −22 .travis.yml
  3. +4 −4 README.rst
  4. +15 −0 util/ci/script.sh
  5. +0 −8 util/travis/script.sh
@@ -0,0 +1,51 @@
name: build

# build on c/cpp changes or workflow changes
on:
push:
paths:
- '**.[ch]'
- '**.cpp'
- '**/CMakeLists.txt'
- '.github/workflows/**.yml'
pull_request:
paths:
- '**.[ch]'
- '**.cpp'
- '**/CMakeLists.txt'
- '.github/workflows/**.yml'

jobs:
gcc:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
source util/ci/script.sh
install_linux_deps
- name: Build
run: |
source util/ci/script.sh
run_build
env:
CC: gcc
CXX: g++

clang:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install deps
run: |
source util/ci/script.sh
install_linux_deps
- name: Build
run: |
source util/ci/script.sh
run_build
env:
CC: clang
CXX: clang++

This file was deleted.

@@ -1,13 +1,13 @@
Minetest Mapper C++
===================

.. image:: https://travis-ci.org/minetest/minetestmapper.svg?branch=master
:target: https://travis-ci.org/minetest/minetestmapper
.. image:: https://github.com/minetest/minetestmapper/workflows/build/badge.svg
:target: https://github.com/minetest/minetestmapper/actions/workflows/build.yml

Minetestmapper generates an overview image from a Minetest map.

A port of minetestmapper.py to C++ from https://github.com/minetest/minetest/tree/master/util.
This version is both faster and provides more features than the now deprecated Python script.
A port of minetestmapper.py to C++ from https://github.com/minetest/minetest/tree/0.4.17/util.
This version is both faster and provides more features than the now obsolete Python script.

Requirements
------------
@@ -0,0 +1,15 @@
#!/bin/bash -e

install_linux_deps() {
local pkgs=(cmake libgd-dev libsqlite3-dev libleveldb-dev libpq-dev libhiredis-dev)

sudo apt-get update
sudo apt-get install -y --no-install-recommends ${pkgs[@]} "$@"
}

run_build() {
cmake . -DCMAKE_BUILD_TYPE=Debug \
-DENABLE_LEVELDB=1 -DENABLE_POSTGRESQL=1 -DENABLE_REDIS=1

make -j2
}

This file was deleted.

0 comments on commit f26070e

Please sign in to comment.