diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2897dd5..c3b08a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,29 @@ jobs: ${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}- ${{ runner.os }}-${{ github.job }}- ${{ runner.os }}- + - name: Cache Homebrew modules + uses: actions/cache@v4 + env: + cache-name: brew + with: + path: | + ~/Library/Caches/Homebrew/llvm-- + ~/Library/Caches/Homebrew/downloads/*--llvm-- + key: ${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-${{ env.cache-name }}-${{ hashFiles('**/Package.swift') }} + restore-keys: | + ${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-${{ env.cache-name }}- + ${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}- + ${{ runner.os }}-${{ github.job }}- + ${{ runner.os }}- - name: Disable SwiftLint Plugin run: sed -i -e 's/.*SwiftLint.*//g' Package.swift + - name: Install LLVM + env: + HOMEBREW_NO_AUTO_UPDATE: 1 + run: brew install llvm + - name: Activate clang module + run: | + swift package resolve + sudo swift .build/checkouts/ClangSwift/utils/make-pkgconfig.swift - name: Test run: swift test