Skip to content

Commit

Permalink
🚧 (WIP): Turn off caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Feb 4, 2025
1 parent 79ba817 commit 6b5eb08
Showing 1 changed file with 60 additions and 61 deletions.
121 changes: 60 additions & 61 deletions .github/workflows/ci-tuist-build-github_hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,71 +62,71 @@ jobs:
which tuist
tuist version
- name: Cache Xcode derived data
uses: irgaly/xcode-cache@v1
with:
key: xcode-cache-tuist_build_github_hosted-DEVELOPER_MODE_${{ matrix.TUIST_DEVELOPER_MODE }}-${{ github.sha }}
restore-keys: |
xcode-cache-tuist_build_github_hosted-DEVELOPER_MODE_${{ matrix.TUIST_DEVELOPER_MODE }}-
xcode-cache-tuist_build_github_hosted-
xcode-cache-
delete-used-deriveddata-cache: true
swiftpm-package-resolved-file: Tuist/Package.resolved
use-default-mtime-targets: true
restore-mtime-targets: |
**/*.bin
**/*.gif
**/*.jpeg
**/*.jpg
**/*.mid
**/*.mp3
**/*.pdf
**/*.png
**/*.svg
**/*.wav
**/*.json
**/*.xcstrings
**/*.mp4
**/*.yml
- name: Cache SPM data
uses: actions/cache@v4
with:
path: |
~/Library/Caches/org.swift.swiftpm
~/Library/org.swift.swiftpm
key: spm-cache-tuist_build_github_hosted-DEVELOPER_MODE_${{ matrix.TUIST_DEVELOPER_MODE }}-${{ github.sha }}
restore-keys: |
spm-cache-tuist_build_github_hosted-DEVELOPER_MODE_${{ matrix.TUIST_DEVELOPER_MODE }}-
spm-cache-tuist_build_github_hosted-
spm-cache-
- name: Cache tuist data
uses: actions/cache@v4
with:
path: |
Tuist/.build/artifacts
Tuist/.build/checkouts
Tuist/.build/derived
Tuist/.build/workspace-state.json
key: spm-cache-tuist_build_github_hosted-DEVELOPER_MODE_${{ matrix.TUIST_DEVELOPER_MODE }}-${{ github.sha }}
restore-keys: |
spm-cache-tuist_build_github_hosted-DEVELOPER_MODE_${{ matrix.TUIST_DEVELOPER_MODE }}-
spm-cache-tuist_build_github_hosted-
spm-cache-
- name: restore files' mtime
uses: chetan/git-restore-mtime-action@v2
# - name: Cache Xcode derived data
# uses: irgaly/xcode-cache@v1
# with:
# key: xcode-cache-tuist_build_github_hosted-DEVELOPER_MODE_${{ matrix.TUIST_DEVELOPER_MODE }}-${{ github.sha }}
# restore-keys: |
# xcode-cache-tuist_build_github_hosted-DEVELOPER_MODE_${{ matrix.TUIST_DEVELOPER_MODE }}-
# xcode-cache-tuist_build_github_hosted-
# xcode-cache-
# delete-used-deriveddata-cache: true
# swiftpm-package-resolved-file: Tuist/Package.resolved
# use-default-mtime-targets: true
# restore-mtime-targets: |
# **/*.bin
# **/*.gif
# **/*.jpeg
# **/*.jpg
# **/*.mid
# **/*.mp3
# **/*.pdf
# **/*.png
# **/*.svg
# **/*.wav
# **/*.json
# **/*.xcstrings
# **/*.mp4
# **/*.yml

# - name: Cache SPM data
# uses: actions/cache@v4
# with:
# path: |
# ~/Library/Caches/org.swift.swiftpm
# ~/Library/org.swift.swiftpm
# key: spm-cache-tuist_build_github_hosted-DEVELOPER_MODE_${{ matrix.TUIST_DEVELOPER_MODE }}-${{ github.sha }}
# restore-keys: |
# spm-cache-tuist_build_github_hosted-DEVELOPER_MODE_${{ matrix.TUIST_DEVELOPER_MODE }}-
# spm-cache-tuist_build_github_hosted-
# spm-cache-

# - name: Cache tuist data
# uses: actions/cache@v4
# with:
# path: |
# Tuist/.build/artifacts
# Tuist/.build/checkouts
# Tuist/.build/derived
# Tuist/.build/workspace-state.json
# key: spm-cache-tuist_build_github_hosted-DEVELOPER_MODE_${{ matrix.TUIST_DEVELOPER_MODE }}-${{ github.sha }}
# restore-keys: |
# spm-cache-tuist_build_github_hosted-DEVELOPER_MODE_${{ matrix.TUIST_DEVELOPER_MODE }}-
# spm-cache-tuist_build_github_hosted-
# spm-cache-

# - name: restore files' mtime
# uses: chetan/git-restore-mtime-action@v2

- name: Config Xcode
run: |
xcodes select 16.1
defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
# defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES

- name: Reset SPM cache
run: |
rm -rf ~/Library/Caches/org.swift.swiftpm
rm -rf ~/Library/org.swift.swiftpm
# - name: Reset SPM cache
# run: |
# rm -rf ~/Library/Caches/org.swift.swiftpm
# rm -rf ~/Library/org.swift.swiftpm

- name: tuist install
run: |
Expand All @@ -146,7 +146,6 @@ jobs:
- name: tuist build
run: |
TUIST_TURN_OFF_LINTERS=${{ env.TUIST_TURN_OFF_LINTERS }} \
TUIST_GENERATE_EXAMPLE_TARGETS=${{ env.TUIST_GENERATE_EXAMPLE_TARGETS }} \
TUIST_GENERATE_MODULES_AS_FRAMEWORKS_FOR_DEBUG=${{ env.TUIST_GENERATE_MODULES_AS_FRAMEWORKS_FOR_DEBUG }} \
Expand Down

0 comments on commit 6b5eb08

Please sign in to comment.