Skip to content

Commit

Permalink
Set version string for CLI option, launch executables in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
calc84maniac committed Aug 20, 2024
1 parent 3b3d280 commit b8d05f4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.linux.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ jobs:
name: CEmu_linux_${{ matrix.qtver }}_master
path: ${{ github.workspace }}/gui/qt/CEmu.build/Linux-${{ matrix.arch }}-${{ matrix.qtver }}/${{ matrix.config }}/CEmu

- name: Launch CEmu
run: |
ldd ${{ github.workspace }}/gui/qt/CEmu.build/Linux-${{ matrix.arch }}-${{ matrix.qtver }}/${{ matrix.config }}/CEmu
${{ github.workspace }}/gui/qt/CEmu.build/Linux-${{ matrix.arch }}-${{ matrix.qtver }}/${{ matrix.config }}/CEmu --version
env:
ACTIONS_STEP_DEBUG: true

- name: Prepare binary for release upload
run: |
mv ${{ github.workspace }}/gui/qt/CEmu.build/Linux-${{ matrix.arch }}-${{ matrix.qtver }}/${{ matrix.config }}/CEmu ${{ github.workspace }}/CEmu-nightly_linux64_qt6_${{ matrix.release_suffix }}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build.mac.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ jobs:
name: CEmu-nightly_mac_qt${{matrix.qtvershort}}
path: CEmu-nightly_mac_qt${{matrix.qtvershort}}.dmg

- name: Launch CEmu
run: |
otool -L /tmp/CEmu-nightly_mac_qt${{matrix.qtvershort}}/CEmu.app/Contents/MacOS/CEmu
/tmp/CEmu-nightly_mac_qt${{matrix.qtvershort}}/CEmu.app/Contents/MacOS/CEmu --version
env:
ACTIONS_STEP_DEBUG: true

- name: Update nightly release
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
uses: softprops/action-gh-release@d4e8205d7e959a9107da6396278b2f1f07af0f9b # latest as of 2023-01-13
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build.windows.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ jobs:
name: CEmu_win${{ matrix.arch_suffix }}_${{ matrix.qtver }}_master
path: ${{ github.workspace }}/gui/qt/CEmu.build/Win-${{ matrix.arch }}-${{ matrix.qtver }}/${{ matrix.config }}/CEmu.exe

- name: Launch CEmu
run: |
dumpbin /DEPENDENTS ${{ github.workspace }}/gui/qt/CEmu.build/Win-${{ matrix.arch }}-${{ matrix.qtver }}/${{ matrix.config }}/CEmu.exe
${{ github.workspace }}/gui/qt/CEmu.build/Win-${{ matrix.arch }}-${{ matrix.qtver }}/${{ matrix.config }}/CEmu.exe --version
env:
ACTIONS_STEP_DEBUG: true

- name: Prepare binary for release upload
if: ${{ matrix.config == 'Release' }}
run: |
Expand Down
1 change: 1 addition & 0 deletions gui/qt/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ int main(int argc, char *argv[]) {

QCoreApplication::setOrganizationName(QStringLiteral("cemu-dev"));
QCoreApplication::setApplicationName(QStringLiteral("CEmu"));
QCoreApplication::setApplicationVersion(QStringLiteral(CEMU_VERSION " (git: " CEMU_GIT_SHA ")"));

execPath = QCoreApplication::applicationFilePath();

Expand Down

0 comments on commit b8d05f4

Please sign in to comment.