Skip to content

Commit

Permalink
Update travis config with ARM platforms (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Nov 1, 2019
1 parent d8dc2aa commit 53bd1d0
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 7 deletions.
52 changes: 48 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,76 @@ matrix:
include:
- os: linux
sudo: required
dist: trusty
dist: precise
compiler: gcc
arch: amd64
env: BUILD=amd64-precise-gcc
- os: linux
sudo: required
dist: trusty
dist: xenial
compiler: gcc
arch: amd64
env: BUILD=amd64-xenial-gcc
- os: linux
sudo: required
dist: xenial
compiler: clang
arch: amd64
env: BUILD=amd64-xenial-clang
- os: linux
sudo: required
dist: xenial
compiler: gcc
arch: arm64
env: BUILD=arm64-xenial-gcc
- os: linux
sudo: required
dist: xenial
dist: bionic
compiler: gcc
arch: amd64
env: BUILD=amd64-bionic-gcc
- os: linux
sudo: required
dist: bionic
compiler: clang
- os: osx
arch: amd64
env: BUILD=amd64-bionic-clang
- os: linux
sudo: required
dist: bionic
compiler: gcc
arch: arm64
env: BUILD=arm64-bionic-gcc
- os: osx
sudo: required
osx_image: xcode11.2
compiler: clang
arch: amd64
env: BUILD=amd64-xcode11.2-clang
- os: osx
sudo: required
osx_image: xcode11.2
compiler: clang
arch: arm64
env: BUILD=arm64-xcode11.2-clang
- os: osx
sudo: required
osx_image: xcode6.4
compiler: clang
arch: amd64
env: BUILD=amd64-xcode6.4-clang

install:
- git clone https://github.com/SanderMertens/bake
- make -C bake/build-$(uname)
- bake/bake setup
- mkdir build
- cd build
- cmake ..
- make
- cd ..
- bake
- bake examples

script:
- bake test
Expand Down
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 2.8.7)

project (flecs C)

file(GLOB flecs_SRC "src/*.c")

include_directories("include")

add_compile_definitions(FLECS_IMPL)
add_definitions(-DFLECS_IMPL)

add_library(flecs_static STATIC ${flecs_SRC})
add_library(flecs_shared SHARED ${flecs_SRC})

target_compile_definitions(flecs_static PRIVATE FLECS_STATIC)
if (TARGET flecs_static)
add_definitions(-DPRIVATE -DFLECS_STATIC)
endif()

install(
DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION include FILES_MATCHING PATTERN "*.h"
Expand Down
5 changes: 5 additions & 0 deletions project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@
"author": "Sander Mertens",
"description": "Multithreaded Entity Component System written in C99",
"use": ["bake.util"]
},
"lang.c": {
"${os linux}": {
"lib": ["rt"]
}
}
}

0 comments on commit 53bd1d0

Please sign in to comment.