Update build cache #7
Workflow file for this run
This file contains hidden or 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
name: Update build cache | |
on: | |
schedule: | |
- cron: '0 0 * * 6' | |
workflow_dispatch: | |
jobs: | |
main: | |
name: Update build cache | |
runs-on: macos-15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Xcode Cache | |
uses: irgaly/xcode-cache@v1 | |
with: | |
key: xcode-cache-deriveddata-${{ github.sha }} | |
restore-keys: xcode-cache-deriveddata- | |
swiftpm-cache-key: spm-soucepackages-${{ hashFiles('Anytype.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }} | |
swiftpm-cache-restore-keys: spm-soucepackages- | |
- name: Prepare deps | |
uses: ./.github/actions/prepare-deps | |
- name: Setup Xcode | |
uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: '16.1' | |
- name: Download Middleware | |
run: make setup-middle-ci | |
env: | |
MIDDLEWARE_TOKEN: ${{ secrets.MIDDLEWARE_TOKEN }} | |
- name: Build tools | |
run: make setup-tools | |
- name: Update build cache | |
run: bundle exec fastlane build_for_tests | |
env: | |
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 900 | |
FASTLANE_XCODE_LIST_TIMEOUT: 900 | |
- name: Cache local build folder | |
uses: actions/cache/save@v4 | |
with: | |
path: build | |
key: build-local-tools-${{ github.sha }} | |
restore-keys: | | |
build-local-tools- |