Add developer name to metainfo file #383
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
jobs: | |
Linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y wget cmake libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libjsoncpp-dev | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr . | |
make | |
strip --strip-unneeded oceanpop | |
make install DESTDIR=AppDir | |
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage | |
chmod +x linuxdeploy*.AppImage | |
./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage | |
- name: Publish artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: oceanpop-linux | |
path: | | |
OceanPop*.AppImage | |
LICENSE.txt | |
README.md | |
Windows: | |
runs-on: windows-latest | |
steps: | |
- name: Install dependencies | |
run: | | |
vcpkg install --triplet x64-windows-static sdl2 sdl2-image[libjpeg-turbo] sdl2-ttf sdl2-mixer[mpg123] jsoncpp | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DBUILD_STATIC=ON . | |
cmake --build . --config Release | |
cp Release/oceanpop.exe . | |
- name: Publish artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: oceanpop-windows | |
path: | | |
oceanpop.exe | |
assets | |
LICENSE.txt | |
README.md | |
PSP: | |
runs-on: ubuntu-latest | |
container: pspdev/pspdev:latest | |
steps: | |
- name: Install dependencies | |
run: | | |
apk add cmake | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
mkdir oceanpop | |
cd oceanpop | |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$PSPDEV/psp/share/pspdev.cmake .. | |
make | |
cp ../LICENSE.txt ./ | |
cp ../README.md ./ | |
- name: Publish artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: oceanpop-psp | |
path: | | |
oceanpop/EBOOT.PBP | |
oceanpop/assets | |
oceanpop/LICENSE.txt | |
oceanpop/README.md | |
Vita: | |
runs-on: ubuntu-latest | |
container: gnuton/vitasdk-docker:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
cmake -DCMAKE_TOOLCHAIN_FILE="${VITASDK}/share/vita.toolchain.cmake" . | |
make | |
- name: Publish artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: oceanpop-vita | |
path: | | |
oceanpop.vpk | |
LICENSE.txt | |
README.md | |
Release: | |
needs: [Linux, Windows, PSP, Vita] | |
if: ${{ github.ref_type == 'tag' }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
build: [linux, windows, psp, vita] | |
steps: | |
- uses: actions/download-artifact@v3 | |
- name: Zip artifacts | |
run: | | |
zip -r oceanpop-${{matrix.build}}.zip oceanpop-${{matrix.build}} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: oceanpop-${{matrix.build}}.zip | |
prerelease: true | |
name: OceanPop ${{ github.ref_name }} | |
tag_name: ${{ github.ref_name }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |