mirror of
https://github.com/laosb/SwiftTailwind.git
synced 2025-11-28 22:01:38 +00:00
chore: Add Swift 6.2 to CI matrix and cache packages
This commit is contained in:
parent
da0c9046ae
commit
d637b95450
1 changed files with 20 additions and 2 deletions
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
|
@ -12,13 +12,22 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
swift-version: ["6.1"]
|
||||
swift-version: ["6.1", "6.2"]
|
||||
container:
|
||||
image: swift:${{ matrix.swift-version }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Cache Swift packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: .build
|
||||
key: ${{ runner.os }}-spm-${{ matrix.swift-version }}-${{ hashFiles('**/Package.resolved') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-spm-${{ matrix.swift-version }}-
|
||||
${{ runner.os }}-spm-
|
||||
|
||||
- name: Build package
|
||||
run: swift build --verbose
|
||||
|
||||
|
|
@ -30,7 +39,7 @@ jobs:
|
|||
runs-on: macos-latest
|
||||
strategy:
|
||||
matrix:
|
||||
swift-version: ["6.1"]
|
||||
swift-version: ["6.1", "6.2"]
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -40,6 +49,15 @@ jobs:
|
|||
with:
|
||||
swift-version: ${{ matrix.swift-version }}
|
||||
|
||||
- name: Cache Swift packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: .build
|
||||
key: ${{ runner.os }}-spm-${{ matrix.swift-version }}-${{ hashFiles('**/Package.resolved') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-spm-${{ matrix.swift-version }}-
|
||||
${{ runner.os }}-spm-
|
||||
|
||||
- name: Build package
|
||||
run: swift build --verbose
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue