Commit 937c6413 authored by Starcarr's avatar Starcarr
Browse files

[CICD] Updated nightly to use the correct docker image

parent 0e9c2caa
image: starcarr/libnx:latest
variables: variables:
PACKAGE_FOLDER: "snes9x" PACKAGE_FOLDER: "snes9x"
LIBRARY_NAME: "snes9x_libretro_switch.a" LIBRARY_NAME: "snes9x_libretro_switch.a"
NRO_NAME: "snes9x.nro" NRO_NAME: "snes9x.nro"
APP_TITLE: "SNES9X libnx" APP_TITLE: "SNES9X libnx"
stages: package:
- build image: starcarr/libnx:latest
- package
build:
stage: build
script: script:
- rm -rf $PACKAGE_FOLDER - rm -rf $PACKAGE_FOLDER
- mkdir $PACKAGE_FOLDER - mkdir $PACKAGE_FOLDER
- cp assets/overlay.cfg $PACKAGE_FOLDER/overlay.cfg - cp assets/overlay.cfg $PACKAGE_FOLDER/overlay.cfg
- cp assets/overlay.png $PACKAGE_FOLDER/overlay.png - cp assets/overlay.png $PACKAGE_FOLDER/overlay.png
- cd libretro/ - cd libretro/
- make platform=switch -j20 - make platform=switch -j10
- cd ../ - cd ../
- git clone -b master https://git.m4xw.net/Switch/RetroArch/RetroArch.git --depth=1 - git clone -b master https://git.m4xw.net/Switch/RetroArch/RetroArch.git --depth=1
- cp libretro/$LIBRARY_NAME RetroArch/libretro_switch.a - cp libretro/$LIBRARY_NAME RetroArch/libretro_switch.a
- cp assets/icon.jpg RetroArch/icon.jpg - cp assets/icon.jpg RetroArch/icon.jpg
- cd RetroArch/ - cd RetroArch/
- mkdir romfs - mkdir romfs
- APP_TITLE="$APP_TITLE" make -f Makefile.switch -j20 - APP_TITLE="$APP_TITLE" make -f Makefile.switch -j10
- cp retroarch_switch.nro ../$PACKAGE_FOLDER/$NRO_NAME - cp retroarch_switch.nro ../$PACKAGE_FOLDER/$NRO_NAME
- cp retroarch.cfg ../$PACKAGE_FOLDER/retroarch.cfg
artifacts:
expire_in: 80 minutes
name: temp
paths:
- $PACKAGE_FOLDER
package:
stage: package
script:
- echo 'creating stable zip'
when: on_success
artifacts: artifacts:
name: $PACKAGE_FOLDER name: $PACKAGE_FOLDER
paths: paths:
...@@ -47,10 +29,22 @@ package: ...@@ -47,10 +29,22 @@ package:
- master - master
nightly: nightly:
stage: package image: starcarr/libnx:nightly
script: script:
- echo 'creating nightly zip' - rm -rf $PACKAGE_FOLDER
when: on_success - mkdir $PACKAGE_FOLDER
- cp assets/overlay.cfg $PACKAGE_FOLDER/overlay.cfg
- cp assets/overlay.png $PACKAGE_FOLDER/overlay.png
- cd libretro/
- make platform=switch -j10
- cd ../
- git clone -b develop https://git.m4xw.net/Switch/RetroArch/RetroArch.git --depth=1
- cp libretro/$LIBRARY_NAME RetroArch/libretro_switch.a
- cp assets/icon.jpg RetroArch/icon.jpg
- cd RetroArch/
- mkdir romfs
- APP_TITLE="$APP_TITLE" make -f Makefile.switch -j10
- cp retroarch_switch.nro ../$PACKAGE_FOLDER/$NRO_NAME
artifacts: artifacts:
name: $PACKAGE_FOLDER name: $PACKAGE_FOLDER
expire_in: 24 hours expire_in: 24 hours
......
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