mirror of
https://github.com/cmosher01/Epple-II.git
synced 2024-12-27 17:29:16 +00:00
65 lines
2.0 KiB
YAML
65 lines
2.0 KiB
YAML
language: cpp
|
|
|
|
env:
|
|
global:
|
|
- NAME=$(grep bin_PROGRAMS src/Makefile.am | cut -d= -f2)
|
|
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
dist: xenial
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- build-essential
|
|
- xa65
|
|
- libsdl2-dev
|
|
before_script:
|
|
- ./bootstrap
|
|
script:
|
|
- ./configure
|
|
- make
|
|
- zip -j $NAME-$TRAVIS_OS_NAME src/$NAME
|
|
- unzip -l $NAME-$TRAVIS_OS_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
|
|
- unzip -l $NAME-$TRAVIS_OS_NAME
|
|
- os: linux # cross compile to windows
|
|
dist: xenial
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- mingw-w64
|
|
- xa65
|
|
install:
|
|
- 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 -
|
|
- curl -LO https://github.com/cmosher01/Apple-II-System-Masters/releases/download/v1.1.0/apple2sysmas.zip
|
|
- curl -LO https://github.com/cmosher01/Apple-II-Source/releases/download/v1.1.2/apple2sys.zip
|
|
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
|
|
- unzip -d $NAME apple2sys && rm apple2sys.zip
|
|
- unzip -d $NAME apple2sysmas && rm apple2sysmas.zip
|
|
- 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
|