Commit e19b218e authored by Miguel Castiblanco's avatar Miguel Castiblanco
Browse files

[CICD] Using variables

parent eae3274c
Pipeline #62 passed with stage
in 4 minutes and 33 seconds
image: devkitpro/devkita64:latest
variables:
PACKAGE_FOLDER: "snes9x"
LIBRARY_NAME: "snes9x_libretro_switch.a"
NRO_NAME: "snes9x.nro"
APP_TITLE: "SNES9X libnx"
cache:
paths:
- snes9x/
- $PACKAGE_FOLDER
stages:
- build
......@@ -15,21 +21,21 @@ build:
- export DEVKITPRO=/opt/devkitpro
- export DEVKITARM=/opt/devkitpro/devkitARM
script:
- rm -rf snes9x
- mkdir snes9x
- cp assets/overlay.cfg snes9x/overlay.cfg
- cp assets/overlay.png snes9x/overlay.png
- rm -rf $PACKAGE_FOLDER
- mkdir $PACKAGE_FOLDER
- cp assets/overlay.cfg $PACKAGE_FOLDER/overlay.cfg
- cp assets/overlay.png $PACKAGE_FOLDER/overlay.png
- cd libretro/
- make platform=switch -j20
- cd ../
- git clone -b master https://git.m4xw.net/Switch/RetroArch/RetroArch.git --depth=1
- cp libretro/snes9x_libretro_switch.a RetroArch/libretro_switch.a
- cp libretro/$LIBRARY_NAME RetroArch/libretro_switch.a
- cp assets/icon.jpg RetroArch/icon.jpg
- cd RetroArch/
- mkdir romfs
- APP_TITLE="SNES9x libnx" make -f Makefile.switch -j20
- cp retroarch_switch.nro ../snes9x/snes9x.nro
- cp retroarch.cfg ../snes9x/retroarch.cfg
- APP_TITLE="$APP_TITLE" make -f Makefile.switch -j20
- cp retroarch_switch.nro ../$PACKAGE_FOLDER/$NRO_NAME
- cp retroarch.cfg ../$PACKAGE_FOLDER/retroarch.cfg
package:
stage: package
......@@ -37,9 +43,9 @@ package:
- echo 'creating zip'
when: on_success
artifacts:
name: snes9x
name: $PACKAGE_FOLDER
paths:
- snes9x/
- $PACKAGE_FOLDER
only:
- master
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment