Skip to content

Commit

Permalink
Update CI Workflows (jellyfin#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
chickdan authored Jan 25, 2024
1 parent ff229a5 commit 638ccab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,34 @@ jobs:
scheme:
- "Swiftfin"
- "Swiftfin tvOS"
runs-on: macos-12

runs-on: macos-13

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Install SwiftGen
run: brew install swiftgen

- name: Cache Carthage
uses: actions/cache@v3
uses: actions/cache@v4
id: carthage-cache
with:
path: Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
restore-keys: ${{ runner.os }}-carthage-

- name: Update Carthage
run: carthage update --use-xcframeworks --cache-builds

- name: Cache Swift packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: PackageCache
key: ${{ runner.os }}-${{ matrix.scheme }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: ${{ runner.os }}-${{ matrix.scheme }}-spm-

- name: Build
uses: nick-fields/retry@v2
with:
Expand All @@ -58,5 +58,4 @@ jobs:
xcodebuild build -project "Swiftfin.xcodeproj" \
-scheme "${{ matrix.scheme }}" \
-clonedSourcePackagesDirPath PackageCache \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
4 changes: 2 additions & 2 deletions .github/workflows/lint-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
build:
name: "Lint 🧹"
if: github.event.pull_request.draft == false
runs-on: macos-12
runs-on: macos-13

steps:
- name: Checkout
uses: actions/checkout@v2.3.4
uses: actions/checkout@v4

- name: Run Swiftformat
run: swiftformat . --lint --config ".swiftformat"

0 comments on commit 638ccab

Please sign in to comment.