99 - name : Install dependencies
1010 run : |
1111 sudo apt-get update
12- sudo apt-get install -y wget cmake libsdl2 -dev libsdl2-image -dev libsdl2-mixer- dev libsdl2-ttf -dev libjsoncpp -dev libfuse2
12+ sudo apt-get install --no-install-recommends git ca-certificates g++ make cmake zlib1g -dev libasound-dev libxkbcommon -dev libdrm- dev libgl1-mesa -dev libgbm -dev libwayland-dev libdecor-0-dev
1313 - name : Checkout
14- uses : actions/checkout@v4
14+ uses : actions/checkout@v6
1515 with :
1616 submodules : recursive
17- - name : Build tinygettext
18- run : |
19- cd vendor/tinygettext
20- cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF -DTINYGETTEXT_WITH_SDL=ON
21- cd build
22- make
23- sudo make install
2417 - name : Build
2518 run : |
2619 mkdir oceanpop && cd oceanpop
27- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
20+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DSDL_X11=OFF ..
2821 cmake --build .
2922 strip --strip-unneeded oceanpop
3023 make install DESTDIR=AppDir
3124 wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
3225 chmod +x linuxdeploy*.AppImage
3326 ./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage
3427 - name : Publish artifacts
35- uses : actions/upload-artifact@v4
28+ uses : actions/upload-artifact@v7
3629 with :
3730 name : oceanpop-linux
3831 path : |
5851 mingw-w64-x86_64-jsoncpp
5952 update : true
6053 - name : Checkout
61- uses : actions/checkout@v4
54+ uses : actions/checkout@v6
6255 with :
6356 submodules : recursive
6457 - name : Build
@@ -68,13 +61,34 @@ jobs:
6861 cmake --build .
6962 strip --strip-unneeded oceanpop.exe
7063 - name : Publish artifacts
71- uses : actions/upload-artifact@v4
64+ uses : actions/upload-artifact@v7
7265 with :
7366 name : oceanpop-windows
7467 path : |
7568 oceanpop/oceanpop.exe
7669 oceanpop/assets
7770
71+ MacOS :
72+ runs-on : macos-latest
73+ steps :
74+ - name : Checkout
75+ uses : actions/checkout@v6
76+ with :
77+ submodules : recursive
78+ - name : Build
79+ run : |
80+ mkdir oceanpop && cd oceanpop
81+ cmake -DCMAKE_BUILD_TYPE=Release ..
82+ cmake --build .
83+ strip -u -r -x oceanpop
84+ - name : Publish artifacts
85+ uses : actions/upload-artifact@v7
86+ with :
87+ name : oceanpop-macos
88+ path : |
89+ oceanpop/oceanpop
90+ oceanpop/assets
91+
7892 PS2 :
7993 runs-on : ubuntu-latest
8094 container :
8498 run : |
8599 apk add --no-cache gmp mpc1 mpfr4 make pkgconf cmake git
86100 - name : Checkout
87- uses : actions/checkout@v4
101+ uses : actions/checkout@v6
88102 with :
89103 submodules : recursive
90104 - name : Build
94108 cmake --build .
95109 mips64r5900el-ps2-elf-strip --strip-unneeded oceanpop.elf
96110 - name : Publish artifacts
97- uses : actions/upload-artifact@v4
111+ uses : actions/upload-artifact@v7
98112 with :
99113 name : oceanpop-ps2
100114 path : |
@@ -107,7 +121,7 @@ jobs:
107121 container : pspdev/pspdev:latest
108122 steps :
109123 - name : Checkout
110- uses : actions/checkout@v4
124+ uses : actions/checkout@v6
111125 with :
112126 submodules : recursive
113127 - name : Build
@@ -116,7 +130,7 @@ jobs:
116130 psp-cmake -DCMAKE_BUILD_TYPE=Release ..
117131 cmake --build .
118132 - name : Publish artifacts
119- uses : actions/upload-artifact@v4
133+ uses : actions/upload-artifact@v7
120134 with :
121135 name : oceanpop-psp
122136 path : |
@@ -128,7 +142,7 @@ jobs:
128142 container : vitasdk/vitasdk:latest
129143 steps :
130144 - name : Checkout
131- uses : actions/checkout@v4
145+ uses : actions/checkout@v6
132146 with :
133147 submodules : recursive
134148 - name : Build
@@ -137,7 +151,7 @@ jobs:
137151 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="${VITASDK}/share/vita.toolchain.cmake" ..
138152 cmake --build .
139153 - name : Publish artifacts
140- uses : actions/upload-artifact@v4
154+ uses : actions/upload-artifact@v7
141155 with :
142156 name : oceanpop-vita
143157 path : |
@@ -146,9 +160,10 @@ jobs:
146160 Wii :
147161 runs-on : ubuntu-latest
148162 container : devkitpro/devkitppc:latest
163+ if : false
149164 steps :
150165 - name : Checkout
151- uses : actions/checkout@v4
166+ uses : actions/checkout@v6
152167 with :
153168 submodules : recursive
154169 - name : Build
@@ -160,27 +175,27 @@ jobs:
160175 run : |
161176 ./platform/wii/make_release.sh oceanpop ${{ github.ref_name }}
162177 - name : Publish artifacts
163- uses : actions/upload-artifact@v4
178+ uses : actions/upload-artifact@v7
164179 with :
165180 name : oceanpop-wii
166181 path : |
167182 oceanpop/oceanpop*.zip
168183
169184 Release :
170- needs : [Linux, Windows, PSP, Vita, Wii , PS2]
185+ needs : [Linux, Windows, MacOS, PSP, Vita , PS2]
171186 if : ${{ github.ref_type == 'tag' }}
172187 runs-on : ubuntu-latest
173188 strategy :
174189 max-parallel : 1
175190 matrix :
176- build : [linux, windows, psp, vita, wii , ps2]
191+ build : [linux, windows, macos, psp, vita , ps2]
177192 steps :
178- - uses : actions/download-artifact@v4
193+ - uses : actions/download-artifact@v8
179194 - name : Zip artifacts
180195 run : |
181196 zip -r oceanpop-${{matrix.build}}.zip oceanpop-${{matrix.build}}
182197 - name : Release
183- uses : softprops/action-gh-release@v2
198+ uses : softprops/action-gh-release@v3
184199 with :
185200 files : oceanpop-${{matrix.build}}.zip
186201 prerelease : true
0 commit comments