core-compatibility/.gitlab-ci.yml
2021-01-22 10:39:40 -05:00

41 lines
1.4 KiB
YAML

stages:
- package
.package-base:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-amd64-ubuntu:latest
stage: package
variables:
MEDIA_PATH: .media
script:
# MAME 2003
- mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/site/cores/mame2003
- cd cores/mame2003 && make && ./datmagic && cd -
- cp -f cores/mame2003/mame2003.html ${MEDIA_PATH}/${CI_PROJECT_NAME}/site/cores/mame2003
# MAME 2003-Plus
- mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/site/cores/mame2003-plus
- cd cores/mame2003-plus && make && ./datmagic && cd -
- cp -f cores/mame2003-plus/mame2003-plus.html ${MEDIA_PATH}/${CI_PROJECT_NAME}/site/cores/mame2003-plus
# MAME 2010
- mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/site/cores/mame2010
- cd cores/mame2010 && make && ./datmagic && cd -
- cp -f cores/mame2010/mame2010.html ${MEDIA_PATH}/${CI_PROJECT_NAME}/site/cores/mame2010
# MAME 2015
- mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/site/cores/mame2015
- cd cores/mame2015 && unzip mame2015.zip && make && ./datmagic && rm mame2015.xml && cd -
- cp -f cores/mame2015/mame2015.html ${MEDIA_PATH}/${CI_PROJECT_NAME}/site/cores/mame2015
# Main index page
- cp -f index.html ${MEDIA_PATH}/${CI_PROJECT_NAME}/site
artifacts:
paths:
- ${MEDIA_PATH}
expire_in: 1 day
libretro-package-any:
extends: .package-base