From 21aba245ae05c3533d71f6f3689f5b7d09bdc6d4 Mon Sep 17 00:00:00 2001 From: ya4ept Date: Fri, 15 Sep 2023 20:57:15 +0300 Subject: [PATCH] fix: updated github actions (#3787) --- .github/workflows/build_XSTools.yml | 30 +++++++++++++++++++++++++---- openkore.pl | 4 ++-- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_XSTools.yml b/.github/workflows/build_XSTools.yml index 7ba7231c35..85e93cc27b 100644 --- a/.github/workflows/build_XSTools.yml +++ b/.github/workflows/build_XSTools.yml @@ -171,7 +171,7 @@ jobs: - name: Making artifacts uses: actions/upload-artifact@v3 with: - name: ${{ matrix.os }}_perl-${{ matrix.perl }}${{ matrix.architecture }} + name: XSTools_${{ matrix.os }}_perl-${{ matrix.perl }}${{ matrix.architecture }} path: | src\auto\XSTools\XSTools_notes.txt src\auto\XSTools\XSTools.dll @@ -251,7 +251,7 @@ jobs: - name: Restoring XTools from artifacts uses: actions/download-artifact@v3 with: - name: ${{ matrix.os }}_perl-${{ matrix.perl }}${{ matrix.architecture }} + name: XSTools_${{ matrix.os }}_perl-${{ matrix.perl }}${{ matrix.architecture }} - name: Checking for XSTools shell: bash @@ -268,6 +268,17 @@ jobs: cd src\test perl unittests.pl + ################### + # OpenKore launch # + ################### + + - name: Start OpenKore + run: | + perl ./openkore.pl --version + if ( $? -eq "True" ) { + echo "OpenKore started successfully" + } + ################### ## Linux Actions ## @@ -374,7 +385,7 @@ jobs: - name: Making artifacts uses: actions/upload-artifact@v3 with: - name: ${{ matrix.os }}_perl-${{ matrix.perl }}${{ matrix.architecture }} + name: XSTools_${{ matrix.os }}_perl-${{ matrix.perl }}${{ matrix.architecture }} path: | src/auto/XSTools/XSTools_notes.txt src/auto/XSTools/XSTools.so @@ -426,7 +437,7 @@ jobs: - name: Restoring XTools from artifacts uses: actions/download-artifact@v3 with: - name: ${{ matrix.os }}_perl-${{ matrix.perl }}${{ matrix.architecture }} + name: XSTools_${{ matrix.os }}_perl-${{ matrix.perl }}${{ matrix.architecture }} - name: Checking for XSTools shell: bash @@ -442,6 +453,17 @@ jobs: run: | make test + ################### + # OpenKore launch # + ################### + + - name: Start OpenKore + run: | + perl ./openkore.pl --version + if [[ $? -eq 0 ]]; then + echo "OpenKore started successfully" + fi + ####################### # start the third job # ####################### diff --git a/openkore.pl b/openkore.pl index ffeec6adb7..d5c10081fc 100755 --- a/openkore.pl +++ b/openkore.pl @@ -106,7 +106,7 @@ sub parseArguments { Settings::parseArguments(); if ($Settings::options{version}) { print "$Settings::versionText\n"; - exit 1; + exit 0; } }; if (my $e = caught('IOException', 'ArgumentException')) { @@ -124,7 +124,7 @@ sub parseArguments { sub checkEmptyArguments { if ( $Settings::options{help} ) { print Settings::getUsageText(); - exit 1; + exit 0; } eval { use Getopt::Long;