chore: Update actions

This commit is contained in:
Marc Rousavy 2024-02-20 20:34:34 +01:00
parent 369cb4a043
commit eb57b3877c
No known key found for this signature in database
GPG Key ID: 83BEF0F19E8F5321
5 changed files with 12 additions and 14 deletions

View File

@ -30,11 +30,11 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup JDK 11 - name: Setup JDK 17
uses: actions/setup-java@v4 uses: actions/setup-java@v4
with: with:
distribution: 'zulu' distribution: 'zulu'
java-version: 11 java-version: 17
java-package: jdk java-package: jdk
- name: Get yarn cache directory path - name: Get yarn cache directory path
@ -64,12 +64,6 @@ jobs:
${{ runner.os }}-gradle- ${{ runner.os }}-gradle-
- name: Run Gradle Build for example/android/ - name: Run Gradle Build for example/android/
run: cd example/android && ./gradlew assembleDebug --build-cache && cd ../.. run: cd example/android && ./gradlew assembleDebug --build-cache && cd ../..
- name: Upload .apk to GitHub
uses: actions/upload-artifact@v4
with:
name: VisionCamera Example (.apk)
path: package/example/android/app/build/outputs/apk/debug/app-debug.apk
if-no-files-found: error
build-no-frame-processors: build-no-frame-processors:
name: Build Android Example App (without Frame Processors) name: Build Android Example App (without Frame Processors)
@ -80,11 +74,11 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup JDK 11 - name: Setup JDK 17
uses: actions/setup-java@v4 uses: actions/setup-java@v4
with: with:
distribution: 'zulu' distribution: 'zulu'
java-version: 11 java-version: 17
java-package: jdk java-package: jdk
- name: Get yarn cache directory path - name: Get yarn cache directory path

View File

@ -5,5 +5,6 @@ if which clang-format >/dev/null; then
clang-format -style=file:./cpp/.clang-format -i "$file" clang-format -style=file:./cpp/.clang-format -i "$file"
done done
else else
echo "warning: clang-format not installed, install with 'brew install clang-format' (or manually from https://clang.llvm.org/docs/ClangFormat.html)" echo "error: clang-format not installed, install with 'brew install clang-format' (or manually from https://clang.llvm.org/docs/ClangFormat.html)"
exit 1
fi fi

View File

@ -3,5 +3,6 @@
if which ktlint >/dev/null; then if which ktlint >/dev/null; then
cd android && ktlint --color --relative --editorconfig=./.editorconfig -F ./**/*.kt* cd android && ktlint --color --relative --editorconfig=./.editorconfig -F ./**/*.kt*
else else
echo "warning: KTLint not installed, install with 'brew install ktlint' (or manually from https://github.com/pinterest/ktlint)" echo "error: KTLint not installed, install with 'brew install ktlint' (or manually from https://github.com/pinterest/ktlint)"
exit 1
fi fi

View File

@ -3,5 +3,6 @@
if which swiftformat >/dev/null; then if which swiftformat >/dev/null; then
cd ios && swiftformat --quiet . cd ios && swiftformat --quiet .
else else
echo "warning: SwiftFormat not installed, install with 'brew install swiftformat' (or manually from https://github.com/nicklockwood/SwiftFormat)" echo "error: SwiftFormat not installed, install with 'brew install swiftformat' (or manually from https://github.com/nicklockwood/SwiftFormat)"
exit 1
fi fi

View File

@ -3,5 +3,6 @@
if which swiftlint >/dev/null; then if which swiftlint >/dev/null; then
cd ios && swiftlint --quiet --fix && swiftlint --quiet cd ios && swiftlint --quiet --fix && swiftlint --quiet
else else
echo "warning: SwiftLint not installed, install with 'brew install swiftlint' (or manually from https://github.com/realm/SwiftLint)" echo "error: SwiftLint not installed, install with 'brew install swiftlint' (or manually from https://github.com/realm/SwiftLint)"
exit 1
fi fi