Skip to content

Commit a9aec13

Browse files
authored
Update main.yml
1 parent 5bcc185 commit a9aec13

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [push, pull_request, workflow_dispatch]
55
jobs:
66

77
build:
8-
8+
99
runs-on: macos-latest
1010

1111
steps:
@@ -34,8 +34,8 @@ jobs:
3434
git clone --depth=1 https://github.com/acidanthera/Lilu.git
3535
cd Lilu || exit 1
3636
ln -s ../MacKernelSDK MacKernelSDK
37-
xcodebuild -configuration Debug -arch x86_64 | xcpretty && exit ${PIPESTATUS[0]}
38-
if [ ! -d "build/Debug/Lilu.kext" ]; then
37+
xcodebuild -configuration Debug -arch x86_64 | xcpretty && ret=${PIPESTATUS[0]}
38+
if [[ $ret -ne 0 || ! -d build/Debug/Lilu.kext ]]; then
3939
exit 1
4040
fi
4141
cp -R build/Debug/Lilu.kext ../
@@ -49,7 +49,8 @@ jobs:
4949
xcodebuild -alltargets -configuration Release | xcpretty && exit ${PIPESTATUS[0]}
5050
5151
- name: Upload to Artifacts
52-
uses: actions/upload-artifact@v2
52+
uses: actions/upload-artifact@v3
5353
with:
5454
name: ${{ github.event.repository.name }}
5555
path: build/*/*.zip
56+
if-no-files-found: error

0 commit comments

Comments
 (0)