Skip to content

Commit

Permalink
fix: updated github actions (OpenKore#3787)
Browse files Browse the repository at this point in the history
  • Loading branch information
ya4ept authored Sep 15, 2023
1 parent bb4dd45 commit 21aba24
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/build_XSTools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 ##
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 #
#######################
Expand Down
4 changes: 2 additions & 2 deletions openkore.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand All @@ -124,7 +124,7 @@ sub parseArguments {
sub checkEmptyArguments {
if ( $Settings::options{help} ) {
print Settings::getUsageText();
exit 1;
exit 0;
}
eval {
use Getopt::Long;
Expand Down

0 comments on commit 21aba24

Please sign in to comment.