add SPM cache #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_16.0.app/Contents/Developer | ||
jobs: | ||
build: | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/cache@v2 | ||
with: | ||
Check failure on line 19 in .github/workflows/build.yml GitHub Actions / BuildInvalid workflow file
|
||
path: .build | ||
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-spm- | ||
- name: Build | ||
run: swift build | ||
- name: Test | ||
run: swift test --filter "AoCTests.Day.*Tests/testDay.*_part[12]\(\)" |