Update .desktop file name passed to the QApplication #8
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, pull_request, workflow_dispatch] | |
jobs: | |
build-win64: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: msys2/setup-msys2@v2 | |
with: | |
install: make mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-python-jinja mingw-w64-x86_64-python-lxml mingw-w64-x86_64-SDL2 mingw-w64-x86_64-qt5-static | |
- name: Build NanoBoyAdvance | |
run: | | |
cmake \ | |
-Bbuild \ | |
-G"Unix Makefiles" \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_CXX_FLAGS="-s" \ | |
-DPython_EXECUTABLE="$(which python3)" \ | |
-DPLATFORM_QT_STATIC=ON \ | |
-DUSE_STATIC_SDL=ON \ | |
-DQT5_STATIC_DIR="/c/tools/msys64/mingw64/qt5-static" | |
cd build | |
make -j$NUMBER_OF_PROCESSORS | |
- name: Collect artifacts | |
run: | | |
mkdir upload | |
cp -r build/bin/qt/{NanoBoyAdvance.exe,config.toml} upload | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: NanoBoyAdvance-win64 | |
path: upload | |
if-no-files-found: error | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup dependencies | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -y python3-jinja2 python3-lxml libsdl2-dev qtbase5-dev | |
- name: Build NanoBoyAdvance | |
run: | | |
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release | |
cd build | |
make -j$(nproc) | |
- name: Collect artifacts | |
run: | | |
mkdir upload | |
cp -r build/bin/qt/{NanoBoyAdvance,config.toml} upload | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: NanoBoyAdvance-linux | |
path: upload | |
if-no-files-found: error | |
build-macOS: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Setup dependencies | |
env: | |
HOMEBREW_NO_ANALYTICS: 1 | |
run: | | |
brew install sdl2 qt@5 | |
python3 -m pip install Jinja2 | |
- name: Build NanoBoyAdvance | |
run: | | |
cmake -Bbuild \ | |
-DCMAKE_CXX_FLAGS="-s" \ | |
-DUSE_STATIC_SDL=ON \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_PREFIX_PATH="$(brew --prefix qt@5)" \ | |
-DMACOS_BUILD_APP_BUNDLE=ON \ | |
-DMACOS_BUNDLE_QT=ON | |
cd build | |
make -j$(getconf _NPROCESSORS_ONLN) | |
- name: Create disk image | |
run: | | |
mkdir dmg | |
cp -a build/bin/qt/NanoBoyAdvance.app dmg/NanoBoyAdvance.app | |
codesign -s - --deep -f dmg/NanoBoyAdvance.app | |
ln -s /Applications dmg/Applications | |
hdiutil create \ | |
-fs HFS+ \ | |
-volname NanoBoyAdvance \ | |
-srcfolder dmg \ | |
-ov -format UDBZ \ | |
NanoBoyAdvance.dmg | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: NanoBoyAdvance-${{ runner.os }}-x64 | |
path: NanoBoyAdvance.dmg | |
if-no-files-found: error | |
build-macOS-arm: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Setup dependencies | |
env: | |
HOMEBREW_NO_ANALYTICS: 1 | |
run: | | |
brew install sdl2 qt@5 | |
python3 -m pip install Jinja2 | |
- name: Build NanoBoyAdvance | |
run: | | |
cmake -Bbuild \ | |
-DCMAKE_CXX_FLAGS="-s" \ | |
-DUSE_STATIC_SDL=ON \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_PREFIX_PATH="$(brew --prefix qt@5)" \ | |
-DMACOS_BUILD_APP_BUNDLE=ON \ | |
-DMACOS_BUNDLE_QT=ON | |
cd build | |
make -j$(getconf _NPROCESSORS_ONLN) | |
- name: Create disk image | |
run: | | |
mkdir dmg | |
cp -a build/bin/qt/NanoBoyAdvance.app dmg/NanoBoyAdvance.app | |
codesign -s - --deep -f dmg/NanoBoyAdvance.app | |
ln -s /Applications dmg/Applications | |
hdiutil create \ | |
-fs HFS+ \ | |
-volname NanoBoyAdvance \ | |
-srcfolder dmg \ | |
-ov -format UDBZ \ | |
NanoBoyAdvance.dmg | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: NanoBoyAdvance-${{ runner.os }}-arm64 | |
path: NanoBoyAdvance.dmg | |
if-no-files-found: error |