Epple-II/.travis.yml
Christopher A. Mosher 24d1946ba4 windows cross-compile
2019-04-11 18:40:01 -04:00

54 lines
1.6 KiB
YAML

language: cpp
env:
global:
- NAME=$(grep bin_PROGRAMS src/Makefile.am | cut -d= -f2)
matrix:
include:
- os: linux
dist: xenial
sudo: required
before_install:
- sudo apt-get -qq update
install:
- sudo apt-get install -y build-essential xa65 libsdl2-dev
before_script:
- ./bootstrap
script:
- ./configure && make
- zip -j $NAME-$TRAVIS_OS_NAME src/$NAME
- os: osx
install:
- HOMEBREW_NO_AUTO_UPDATE=1 brew install xa sdl2
before_script:
- ./bootstrap
script:
- ./configure && make
- zip -j $NAME-$TRAVIS_OS_NAME src/$NAME
- os: linux # cross compile to windows
dist: xenial
sudo: required
before_install:
- sudo apt-get -qq update
install:
- sudo apt-get install -y mingw-w64 xa65
- curl -L https://www.libsdl.org/release/SDL2-devel-2.0.9-mingw.tar.gz >SDL2.tar.gz && tar xzf SDL2.tar.gz
- cd SDL2-* && sudo make cross CROSS_PATH=/usr ARCHITECTURES=x86_64-w64-mingw32 && cd -
script:
- make -f Makefile.mingw
- mkdir $NAME && cp src/$NAME.exe /usr/x86_64-w64-mingw32/bin/SDL2.dll rom/*.a65 $NAME
- cp conf/$NAME.mingw $NAME/$NAME.conf
- zip -r $NAME-windows $NAME
- unzip -l $NAME-windows
deploy:
provider: releases
api_key:
secure: ShY9Zi+DTe2QdHa5aY0zzqyukP8+DVEOHG56LqiBCDQGrP6Mg8MNftlnFGA62Yc+C0RAD1smekKf5OKsQXJqVIbsq7SD0lw7TKw+0XED8i5TIUaQqM9IcQrua6ESNET2mqJRJkyddjcZMGkLKjHx0UbWyUxmnS4Myw2sbLRd414=
file_glob: true
file: "*.zip"
skip_cleanup: true
on:
tags: true