Skip to content

Commit

Permalink
Remove cache management
Browse files Browse the repository at this point in the history
  • Loading branch information
waliid committed Nov 27, 2024
1 parent 3ced788 commit 8d82c90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache packages
uses: actions/cache@v3
id: packages-cache
with:
path: ~/Library/Caches/org.swift.swiftpm
key: ${{ runner.os }}-packages-${{ hashFiles('**/Package.resolved') }}
restore-keys: ${{ runner.os }}-packages-

- name: Run tests
run: |
make test-${{ matrix.platform }}
Expand Down Expand Up @@ -72,16 +64,6 @@ jobs:
${{ secrets.APP_STORE_CONNECT_API_KEY_B64 }} \
${{ secrets.APPLE_ACCOUNT_INFO_B64 }}
- name: Cache packages
uses: actions/cache@v3
id: packages-demo-cache
with:
path: ~/Demo/Packages
key: |
${{ runner.os }}-demo-packages-\
${{ hashFiles('Demo/**/Package.resolved') }}
restore-keys: ${{ runner.os }}-demo-packages-

- name: Archive the demo
run: |
make archive-demo-${{ matrix.platform }}
Expand Down
8 changes: 2 additions & 6 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ def build_and_sign_app(platform_id, configuration_id)
export_team_id: ENV.fetch('TEAM_ID'),
output_directory: 'Binaries',
xcargs: "-authenticationKeyIssuerID #{ENV.fetch('KEY_ISSUER_ID')} -authenticationKeyID #{ENV.fetch('KEY_ID')} " \
"-authenticationKeyPath #{api_key_filepath} -allowProvisioningUpdates",
cloned_source_packages_path: '~/Demo/Packages',
skip_package_dependencies_resolution: ENV['HAS_PACKAGES_CACHE_HIT'] == 'true'
"-authenticationKeyPath #{api_key_filepath} -allowProvisioningUpdates"
)
end

Expand Down Expand Up @@ -199,9 +197,7 @@ def run_package_tests(platform_id, scheme_name)
number_of_retries: 3,
clean: true,
fail_build: false,
xcargs: '-testLanguage en -testRegion en_US',
cloned_source_packages_path: '~/Library/Caches/org.swift.swiftpm',
skip_package_dependencies_resolution: ENV['HAS_PACKAGES_CACHE_HIT'] == 'true'
xcargs: '-testLanguage en -testRegion en_US'
)
trainer(
path: 'fastlane/test_output',
Expand Down

0 comments on commit 8d82c90

Please sign in to comment.