Skip to content

Commit

Permalink
Update GitHub Actions workflow to use macOS 14 and Xcode 15.2; add Sw…
Browse files Browse the repository at this point in the history
…ift setup step and improve cache cleaning process

- Changed the runner to macOS 14 for compatibility.
- Updated Xcode version to 15.2.
- Added a new step to set up Swift version 6.0.0.
- Enhanced cache cleaning commands to ignore errors, ensuring smoother execution.
  • Loading branch information
ygsgdbd committed Dec 6, 2024
1 parent 5179ccb commit f378883
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
build:
name: Build and Release
runs-on: macos-latest
runs-on: macos-14

steps:
- name: Checkout
Expand All @@ -19,7 +19,12 @@ jobs:
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
xcode-version: '15.2'

- name: Setup Swift
uses: swift-actions/setup-swift@v1
with:
swift-version: '6.0.0'

- name: Setup mise
uses: jdx/mise-action@v2
Expand All @@ -31,12 +36,12 @@ jobs:
- name: Clean Tuist Cache
run: |
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf ~/.tuist
rm -rf .tuist-bin
rm -rf Derived
rm -rf *.xcodeproj
rm -rf *.xcworkspace
rm -rf ~/Library/Developer/Xcode/DerivedData || true
rm -rf ~/.tuist || true
rm -rf .tuist-bin || true
rm -rf Derived || true
rm -rf *.xcodeproj || true
rm -rf *.xcworkspace || true
- name: Setup Tuist
run: |
Expand Down

0 comments on commit f378883

Please sign in to comment.