11name : GenerateBuilds
2+
23on :
34 push :
45
5556 - uses : actions/checkout@v4
5657 with :
5758 submodules : recursive
59+ - name : Setup MSVC
60+ uses : ilammy/msvc-dev-cmd@v1
61+ - name : Setup Python
62+ uses : actions/setup-python@v5
63+ with :
64+ python-version : ' 3.12'
65+ - name : Install Python dependencies
66+ run : pip install -r libultraship/requirements.txt
5867 - name : Build
5968 run : |
60- cmake -S . -B "build/x64" -G "Visual Studio 17 2022" -T v143 -A x64 -DCMAKE_BUILD_TYPE=Release
69+ $env:VCPKG_ROOT=""
70+ cmake -S . -B "build/x64" -G "Visual Studio 17 2022" -T v143 -A x64 -DCMAKE_BUILD_TYPE=Release -DPython3_EXECUTABLE="$(python -c 'import sys; print(sys.executable)')"
6171 cmake --build ./build/x64 --config Release --parallel 10
6272 - name : Download ghostship.o2r
6373 uses : actions/download-artifact@v4
@@ -66,20 +76,30 @@ jobs:
6676 path : ./build/x64/Release
6777 - name : Create Package
6878 run : |
69- mkdir ghostship-release
70- mkdir ghostship-release/debug
71- mv build/x64/Release/Ghostship.exe ghostship-release/
72- mv build/x64/Release/ghostship.o2r ghostship-release/
73- mv build/x64/Release/*.pdb ghostship-release/debug/
74- mv README.md ghostship-release/readme.txt
75- mv config.yml ghostship-release /
76- mv assets ghostship-release/
77- Invoke-WebRequest -Uri "https://raw.githubusercontent.com/mdqinc/SDL_GameControllerDB/master/gamecontrollerdb.txt" -OutFile "ghostship-release/ gamecontrollerdb.txt"
79+ mkdir debug
80+ if (-Not (Test-Path "build/x64/Release/.tcc")) { Write-Error "ERROR: .tcc not found in build/x64/Release/"; exit 1 }
81+ mv build/x64/Release/.tcc .tcc
82+ mv build/x64/Release/Ghostship.exe .
83+ mv build/x64/Release/tcc.dll .
84+ mv build/x64/Release/ghostship.o2r .
85+ mv build/x64/Release/*.pdb debug /
86+ mv README.md readme.txt
87+ Invoke-WebRequest -Uri "https://raw.githubusercontent.com/mdqinc/SDL_GameControllerDB/master/gamecontrollerdb.txt" -OutFile "gamecontrollerdb.txt"
7888 - name : Upload build
7989 uses : actions/upload-artifact@v4
8090 with :
8191 name : Ghostship-windows
82- path : ghostship-release
92+ include-hidden-files : true
93+ path : |
94+ .tcc
95+ Ghostship.exe
96+ tcc.dll
97+ ghostship.o2r
98+ debug
99+ readme.txt
100+ config.yml
101+ assets
102+ gamecontrollerdb.txt
83103
84104 build-macos :
85105 needs : generate-port-o2r
@@ -122,6 +142,8 @@ jobs:
122142 sudo installer -pkg ./MacPorts-2.11.5-14-Sonoma.pkg -target /
123143 fi
124144 echo "/opt/local/bin:/opt/local/sbin" >> "$GITHUB_PATH"
145+ - name : Install Python dependencies
146+ run : python3 -m pip install -r libultraship/requirements.txt --break-system-packages || python3 -m pip install -r libultraship/requirements.txt
125147 - name : Install dependencies
126148 run : |
127149 brew uninstall --ignore-dependencies libpng
@@ -130,7 +152,7 @@ jobs:
130152 - name : Build (Universal)
131153 run : |
132154 export PATH="/usr/lib/ccache:/opt/homebrew/opt/ccache/libexec:/usr/local/opt/ccache/libexec:$PATH"
133- cmake --no-warn-unused-cli -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
155+ cmake --no-warn-unused-cli -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DPython3_EXECUTABLE=$(which python3)
134156 cmake --build build-cmake --config Release --parallel 10
135157 - name : Download ghostship.o2r
136158 uses : actions/download-artifact@v4
@@ -141,12 +163,16 @@ jobs:
141163 run : |
142164 (cd build-cmake && cpack)
143165 mv _packages/*.dmg Ghostship.dmg
166+ ls -la build-cmake/.tcc || (echo "ERROR: .tcc not found in build-cmake/" && exit 1)
167+ cp -r build-cmake/.tcc .tcc
144168 mv README.md readme.txt
145169 - name : Publish packaged artifacts
146170 uses : actions/upload-artifact@v4
147171 with :
148172 name : Ghostship-mac
173+ include-hidden-files : true
149174 path : |
175+ .tcc
150176 Ghostship.dmg
151177 readme.txt
152178 - name : Save Cache MacPorts
@@ -222,33 +248,46 @@ jobs:
222248 make
223249 sudo make install
224250 sudo cp -av /usr/local/lib/libzip* /lib/x86_64-linux-gnu/
251+ - name : Setup Python
252+ uses : actions/setup-python@v5
253+ with :
254+ python-version : ' 3.12'
255+ - name : Install Python dependencies
256+ run : pip install -r libultraship/requirements.txt
225257 - name : Download ghostship.o2r
226258 uses : actions/download-artifact@v4
227259 with :
228260 name : ghostship.o2r
229261 path : ./build-cmake
230262 - name : Build
231263 run : |
232- cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Release
264+ cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPython3_EXECUTABLE=$(which python3)
233265 cmake --build build-cmake --config Release -j3
234266 (cd build-cmake && cpack -G External)
235- wget -O gamecontrollerdb.txt https://raw.githubusercontent.com/mdqinc/SDL_GameControllerDB/refs/heads/ master/gamecontrollerdb.txt
267+ wget -O gamecontrollerdb.txt https://raw.githubusercontent.com/mdqinc/SDL_GameControllerDB/master/gamecontrollerdb.txt
236268 mv README.md readme.txt
237269 mv build-cmake/*.appimage ghostship.appimage
270+ ls -la build-cmake/.tcc || (echo "ERROR: .tcc not found in build-cmake/" && exit 1)
271+ cp -r build-cmake/.tcc .tcc
238272 - name : Upload build
239273 uses : actions/upload-artifact@v4
240274 with :
241275 name : Ghostship-linux
276+ include-hidden-files : true
242277 path : |
278+ .tcc
243279 ghostship.appimage
280+ config.yml
281+ readme.txt
282+ assets
244283 gamecontrollerdb.txt
245284
246285 build-switch :
247286 if : false
248287 needs : generate-port-o2r
249288 runs-on : ubuntu-latest
250289 container :
251- image : devkitpro/devkita64:20241023
290+ image : devkitpro/devkita64:20260219
252291 steps :
253292 - uses : actions/checkout@v4
254293 with :
@@ -258,9 +297,9 @@ jobs:
258297 sudo apt-get update
259298 sudo apt-get install -y ninja-build
260299 sudo apt-get remove -y cmake
261- git -C libultraship remote add nx https://github.com/YoshiCrystal9 /libultraship.git
300+ git -C libultraship remote add nx https://github.com/Net64DD /libultraship.git
262301 git -C libultraship fetch nx
263- git -C libultraship checkout nx/main-nx
302+ git -C libultraship checkout nx/main-nx-nightly
264303 wget https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3-linux-x86_64.sh -O /tmp/cmake.sh
265304 sudo sh /tmp/cmake.sh --prefix=/usr/local/ --exclude-subdir
266305 cmake -H. -Bbuild-switch -GNinja -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/Switch.cmake
0 commit comments