From b8d05f425bcb695e8ab899223cbd1956b61675d8 Mon Sep 17 00:00:00 2001 From: Brendan Fletcher Date: Tue, 20 Aug 2024 18:22:41 -0400 Subject: [PATCH] Set version string for CLI option, launch executables in CI --- .github/workflows/build.linux.workflow.yml | 7 +++++++ .github/workflows/build.mac.workflow.yml | 7 +++++++ .github/workflows/build.windows.workflow.yml | 7 +++++++ gui/qt/main.cpp | 1 + 4 files changed, 22 insertions(+) diff --git a/.github/workflows/build.linux.workflow.yml b/.github/workflows/build.linux.workflow.yml index 2234bb23b..3ff4ca12c 100644 --- a/.github/workflows/build.linux.workflow.yml +++ b/.github/workflows/build.linux.workflow.yml @@ -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 }} diff --git a/.github/workflows/build.mac.workflow.yml b/.github/workflows/build.mac.workflow.yml index 1addfffdc..7ec61f5f3 100644 --- a/.github/workflows/build.mac.workflow.yml +++ b/.github/workflows/build.mac.workflow.yml @@ -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 diff --git a/.github/workflows/build.windows.workflow.yml b/.github/workflows/build.windows.workflow.yml index b6da72c94..38e6a0b1e 100644 --- a/.github/workflows/build.windows.workflow.yml +++ b/.github/workflows/build.windows.workflow.yml @@ -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: | diff --git a/gui/qt/main.cpp b/gui/qt/main.cpp index aafab87dd..700554c20 100644 --- a/gui/qt/main.cpp +++ b/gui/qt/main.cpp @@ -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();