|
|
|
|
version: 2
|
|
|
|
|
jobs:
|
|
|
|
|
switch:
|
|
|
|
|
docker:
|
|
|
|
|
- image: devkitpro/devkita64:latest
|
|
|
|
|
working_directory: ~/repo
|
|
|
|
|
steps:
|
|
|
|
|
- checkout
|
|
|
|
|
- run: apt-get update -y
|
|
|
|
|
- run: apt-get install -y gettext
|
|
|
|
|
- run: /opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
|
- run: cmake --build build -j 2
|
|
|
|
|
- store_artifacts: {path: ./build/devilutionx.nro, destination: devilutionx.nro}
|
|
|
|
|
3ds:
|
|
|
|
|
docker:
|
|
|
|
|
- image: devkitpro/devkitarm:latest
|
|
|
|
|
working_directory: ~/repo
|
|
|
|
|
steps:
|
|
|
|
|
- checkout
|
|
|
|
|
- run: apt-get update -y
|
|
|
|
|
- run: apt-get install -y ffmpeg gettext
|
|
|
|
|
- run: wget https://github.com/diasurgical/bannertool/releases/download/1.2.0/bannertool.zip
|
|
|
|
|
- run: unzip -j "bannertool.zip" "linux-x86_64/bannertool" -d "/opt/devkitpro/tools/bin"
|
|
|
|
|
- run: wget https://github.com/3DSGuy/Project_CTR/releases/download/makerom-v0.18/makerom-v0.18-ubuntu_x86_64.zip
|
|
|
|
|
- run: unzip "makerom-v0.18-ubuntu_x86_64.zip" "makerom" -d "/opt/devkitpro/tools/bin"
|
|
|
|
|
- run: sudo chmod +rx /opt/devkitpro/tools/bin/makerom
|
|
|
|
|
- run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/3DS.cmake
|
|
|
|
|
- run: cmake --build build -j 2
|
|
|
|
|
- store_artifacts: {path: ./build/devilutionx.3dsx, destination: devilutionx.3dsx}
|
|
|
|
|
- store_artifacts: {path: ./build/devilutionx.cia, destination: devilutionx.cia}
|
|
|
|
|
amigaos-m68k:
|
|
|
|
|
docker:
|
|
|
|
|
- image: amigadev/crosstools:m68k-amigaos-gcc10
|
|
|
|
|
working_directory: ~/repo
|
|
|
|
|
steps:
|
|
|
|
|
- checkout
|
|
|
|
|
- run: Packaging/amiga/prep.sh
|
|
|
|
|
- run: cmake -S. -Bbuild -DM68K_CPU=68040 -DM68K_FPU=hard -DM68K_COMMON="-s -fbbb=- -ffast-math -O2"
|
|
|
|
|
- run: cd build && make -j2
|
|
|
|
|
- store_artifacts: {path: ./build/devilutionx, destination: devilutionx_m68k}
|
|
|
|
|
vita:
|
|
|
|
|
docker:
|
|
|
|
|
- image: vitasdk/vitasdk
|
|
|
|
|
working_directory: ~/repo
|
|
|
|
|
steps:
|
|
|
|
|
- checkout
|
|
|
|
|
- run: apk --no-cache add git cmake ninja bash pkgconfig gettext
|
|
|
|
|
- run: cmake -S. -Bbuild -GNinja -DCMAKE_TOOLCHAIN_FILE=${VITASDK}/share/vita.toolchain.cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
|
- run: cmake --build build -j 2
|
|
|
|
|
- store_artifacts: {path: ./build/devilutionx.vpk, destination: devilutionx.vpk}
|
|
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
|
version: 2
|
|
|
|
|
testflow:
|
|
|
|
|
jobs:
|
|
|
|
|
- switch
|
|
|
|
|
- 3ds
|
|
|
|
|
- amigaos-m68k
|
|
|
|
|
- vita
|