Skip to content

Commit

Permalink
chore: cache dependencies in Github actions (#53)
Browse files Browse the repository at this point in the history
This should prevent CodeQL from timing out fetching dependencies.

Fixes #3
  • Loading branch information
rhwood authored Jun 7, 2023
1 parent 51bc06a commit 03ba9f4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 50
- uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
#- name: Set Xcode version
# run: sudo xcode-select -s /Applications/Xcode_13.2.1.app
- name: Build
Expand Down

0 comments on commit 03ba9f4

Please sign in to comment.