[CI] Cache test files themselves instead of lfs

It was discovered that Swift Linux containers do not contain git-lfs, which makes it impossible to restore cache on linux jobs. By caching test files directly we will not need git-lfs.
This commit is contained in:
Timofey Solomko
2026-06-03 13:40:25 +08:00
parent 9054ca6371
commit ae8b576c7e
+6 -12
View File
@@ -30,9 +30,9 @@ stages:
displayName: 'Generate assets-id'
- task: Cache@2
inputs:
key: '"swc_test_files_v4_" | "$(lfsRev)"'
path: '.git/modules/Tests/Test Files/lfs'
displayName: 'Cache lfs of test files'
key: '"swc_test_files_v5_" | "$(lfsRev)"'
path: 'Tests/Test Files'
displayName: 'Cache test files'
- script: |
set -e -o xtrace
cd "Tests/Test Files"
@@ -75,7 +75,6 @@ stages:
- script: |
set -e -o xtrace
git submodule update --init --recursive
cp "Tests/Test Files/gitattributes-copy" "Tests/Test Files/.gitattributes"
displayName: 'Update submodules'
- script: |
set -e -o xtrace
@@ -84,14 +83,9 @@ stages:
displayName: 'Generate assets-id'
- task: Cache@2
inputs:
key: '"swc_test_files_v4_" | "$(lfsRev)"'
path: '.git/modules/Tests/Test Files/lfs'
displayName: 'Cache lfs of test files'
- script: |
set -e -o xtrace
cd "Tests/Test Files"
git lfs checkout
displayName: 'Checkout test files'
key: '"swc_test_files_v5_" | "$(lfsRev)"'
path: 'Tests/Test Files'
displayName: 'Cache test files'
- script: |
set -e -o xtrace
xcrun simctl list > /dev/null