mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
[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:
+6
-12
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user