Update CI Workflows (#956)
This commit is contained in:
parent
ff229a5c38
commit
638ccab692
|
@ -20,34 +20,34 @@ jobs:
|
||||||
scheme:
|
scheme:
|
||||||
- "Swiftfin"
|
- "Swiftfin"
|
||||||
- "Swiftfin tvOS"
|
- "Swiftfin tvOS"
|
||||||
|
|
||||||
runs-on: macos-12
|
runs-on: macos-13
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install SwiftGen
|
- name: Install SwiftGen
|
||||||
run: brew install swiftgen
|
run: brew install swiftgen
|
||||||
|
|
||||||
- name: Cache Carthage
|
- name: Cache Carthage
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
id: carthage-cache
|
id: carthage-cache
|
||||||
with:
|
with:
|
||||||
path: Carthage
|
path: Carthage
|
||||||
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
|
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
|
||||||
restore-keys: ${{ runner.os }}-carthage-
|
restore-keys: ${{ runner.os }}-carthage-
|
||||||
|
|
||||||
- name: Update Carthage
|
- name: Update Carthage
|
||||||
run: carthage update --use-xcframeworks --cache-builds
|
run: carthage update --use-xcframeworks --cache-builds
|
||||||
|
|
||||||
- name: Cache Swift packages
|
- name: Cache Swift packages
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: PackageCache
|
path: PackageCache
|
||||||
key: ${{ runner.os }}-${{ matrix.scheme }}-spm-${{ hashFiles('**/Package.resolved') }}
|
key: ${{ runner.os }}-${{ matrix.scheme }}-spm-${{ hashFiles('**/Package.resolved') }}
|
||||||
restore-keys: ${{ runner.os }}-${{ matrix.scheme }}-spm-
|
restore-keys: ${{ runner.os }}-${{ matrix.scheme }}-spm-
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: nick-fields/retry@v2
|
uses: nick-fields/retry@v2
|
||||||
with:
|
with:
|
||||||
|
@ -58,5 +58,4 @@ jobs:
|
||||||
xcodebuild build -project "Swiftfin.xcodeproj" \
|
xcodebuild build -project "Swiftfin.xcodeproj" \
|
||||||
-scheme "${{ matrix.scheme }}" \
|
-scheme "${{ matrix.scheme }}" \
|
||||||
-clonedSourcePackagesDirPath PackageCache \
|
-clonedSourcePackagesDirPath PackageCache \
|
||||||
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
|
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
|
||||||
|
|
|
@ -13,11 +13,11 @@ jobs:
|
||||||
build:
|
build:
|
||||||
name: "Lint 🧹"
|
name: "Lint 🧹"
|
||||||
if: github.event.pull_request.draft == false
|
if: github.event.pull_request.draft == false
|
||||||
runs-on: macos-12
|
runs-on: macos-13
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run Swiftformat
|
- name: Run Swiftformat
|
||||||
run: swiftformat . --lint --config ".swiftformat"
|
run: swiftformat . --lint --config ".swiftformat"
|
||||||
|
|
Loading…
Reference in New Issue