-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #846 from DroidKaigi/chore/cache-konan
chore: cache .konan & SPM directory
- Loading branch information
Showing
19 changed files
with
587 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
root=true | ||
|
||
[*] | ||
charset=utf-8 | ||
end_of_line=lf | ||
indent_style=space | ||
insert_final_newline=true | ||
|
||
[{*.bash,*.sh,*.zsh}] | ||
indent_size=2 | ||
tab_width=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: "cache SPM" | ||
description: "save and restore SPM cache" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/cache/restore@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3 | ||
id: cache-spm | ||
with: | ||
path: | | ||
./app-ios/build/DerivedData/SourcePackages | ||
key: v1-spm-${{ runner.os }}-${{ hashFiles('.xcode-version') }}-${{ hashFiles('app-ios/Modules/Package.swift') }}-${{ hashFiles('app-ios/App/DroidKaigi2023/DroidKaigi2023.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }} | ||
|
||
- if: ${{ steps.cache-spm.outputs.cache-hit != 'true' }} | ||
shell: bash | ||
working-directory: app-ios | ||
run: bundle exec fastlane shared | ||
|
||
- if: ${{ steps.cache-spm.outputs.cache-hit != 'true' }} | ||
shell: bash | ||
working-directory: app-ios | ||
run: bundle exec fastlane resolved_package | ||
|
||
- if: ${{ steps.cache-spm.outputs.cache-hit != 'true' }} | ||
uses: actions/cache/save@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3 | ||
with: | ||
path: | | ||
./app-ios/build/DerivedData/SourcePackages | ||
key: v1-spm-${{ runner.os }}-${{ hashFiles('.xcode-version') }}-${{ hashFiles('app-ios/Modules/Package.swift') }}-${{ hashFiles('app-ios/App/DroidKaigi2023/DroidKaigi2023.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: "select xcode" | ||
description: "select xcode defined at .xcode-version" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: read .xcode-version | ||
shell: bash | ||
run: | | ||
echo "XCODE_VERSION=$(grep -oE "\d+(\.\d+)+" .xcode-version | awk -F. '{print $1 ".0"}' | uniq)" >> $GITHUB_ENV | ||
- name: execute xcode-select | ||
shell: bash | ||
run: | | ||
echo "select $XCODE_VERSION" | ||
sudo xcode-select --switch "/Applications/Xcode_$XCODE_VERSION.app" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,24 +26,41 @@ jobs: | |
|
||
- uses: reviewdog/[email protected] | ||
|
||
- name: Check detekt | ||
id: detekt | ||
uses: gradle/gradle-build-action@a4cf152f482c7ca97ef56ead29bf08bcd953284c # v2 | ||
with: | ||
gradle-home-cache-cleanup: true | ||
arguments: detekt reportMerge --continue | ||
# - uses: reviewdog/[email protected] | ||
# | ||
# - name: Check detekt | ||
# id: detekt | ||
# uses: gradle/gradle-build-action@a4cf152f482c7ca97ef56ead29bf08bcd953284c # v2 | ||
# with: | ||
# gradle-home-cache-cleanup: true | ||
# arguments: detekt reportMerge --continue | ||
# | ||
# - name: Run report with ReviewDog | ||
# if: steps.detekt.outcome == 'failure' | ||
# env: | ||
# REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# run: cat ./build/reports/detekt/merge.xml | | ||
# reviewdog -f=checkstyle -name="detekt" -reporter="github-pr-review" | ||
# | ||
# - name: Comment lint check success | ||
# if: steps.detekt.outcome == 'success' | ||
# uses: marocchino/sticky-pull-request-comment@v2 | ||
# with: | ||
# header: detekt | ||
# recreate: true | ||
# message: | | ||
# :sparkles: :sparkles: **That's perfect, passed the PR lint check perfectly!** :sparkles: :sparkles: | ||
- id: detekt | ||
run: ./gradlew detekt reportMerge --continue | ||
|
||
- name: Run report with ReviewDog | ||
if: steps.detekt.outcome == 'failure' | ||
env: | ||
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: cat ./build/reports/detekt/merge.xml | | ||
reviewdog -f=checkstyle -name="detekt" -reporter="github-pr-review" | ||
run: | | ||
< ./build/reports/detekt/merge.xml reviewdog -f=checkstyle -name="detekt" -reporter="github-pr-review" | ||
- name: Check lint | ||
uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691 # v2 | ||
with: | ||
arguments: lintDebug lintDevDebug --stacktrace | ||
- run: ./gradlew lintDebug lintDevDebug --stacktrace | ||
|
||
- name: Upload lint reports | ||
if: always() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.