|
38 | 38 | sudo apt-get install -y libvlc-dev libvlccore-dev dpkg-dev file desktop-file-utils gtk-update-icon-cache |
39 | 39 | pre_build_commands: |
40 | 40 | artifact_path: export/release/linux/bin |
| 41 | + |
| 42 | + - platform: Nintendo Switch |
| 43 | + os: ubuntu-latest |
| 44 | + haxe_setup: | |
| 45 | + sudo apt-get update |
| 46 | + sudo apt-get install -y wget git neko libgc-dev |
| 47 | + wget https://github.com/HaxeFoundation/haxe/releases/download/4.3.4/haxe-4.3.4-linux64.tar.gz |
| 48 | + mkdir haxe_temp |
| 49 | + tar -xf haxe-4.3.4-linux64.tar.gz -C haxe_temp |
| 50 | + cp -r haxe_temp/haxe_*/* /usr/local/bin/ |
| 51 | + mkdir -p ~/haxelib |
| 52 | + haxelib --always --quiet setup ~/haxelib |
| 53 | + haxelib --global --always --quiet update haxelib |
| 54 | + build_cmd: haxelib run lime build Project.xml switch --app-version="4.0.0-${{ github.run_id}}" -D officialBuild |
| 55 | + extra_libs: | |
| 56 | + dkp-pacman -Sy --noconfirm |
| 57 | + |
| 58 | + dkp-pacman -S --needed --noconfirm \ |
| 59 | + |
| 60 | + switch-bzip2 switch-cmake switch-curl switch-flac \ |
| 61 | + switch-freetype switch-glad switch-glm switch-harfbuzz \ |
| 62 | + switch-libdrm_nouveau switch-libjpeg-turbo switch-libmodplug \ |
| 63 | + switch-libogg switch-libopus switch-libpng switch-libvorbis \ |
| 64 | + switch-libvorbisidec switch-libwebp switch-mesa switch-mpg123 \ |
| 65 | + switch-openal-soft switch-opusfile switch-pkg-config switch-sdl2 \ |
| 66 | + switch-sdl2_gfx switch-sdl2_image switch-sdl2_mixer \ |
| 67 | + switch-sdl2_net switch-sdl2_ttf switch-tools switch-zlib \ |
| 68 | + switch-liblua51 |
| 69 | + |
| 70 | + haxelib --always --quiet install format |
| 71 | + haxelib --always --quiet install hxp |
| 72 | + haxelib --always --quiet git lime https://github.com/Slushi-Github/lime-nx.git |
| 73 | + haxelib --always --quiet git hxcpp https://github.com/Slushi-Github/hxcpp-nx.git |
| 74 | + haxelib --always --quiet git hx_libnx https://github.com/Slushi-Github/hx_libnx.git |
| 75 | + pre_build_commands: | |
| 76 | + cd ~/haxelib/hxcpp/git/tools/hxcpp |
| 77 | + haxe compile.hxml |
| 78 | + cd - |
| 79 | + |
| 80 | + haxelib run lime rebuild switch |
| 81 | + artifact_path: export/release/switch/bin/*.nro |
41 | 82 |
|
42 | 83 | - platform: Android |
43 | 84 | os: ubuntu-latest |
|
0 commit comments