Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ permissions:

jobs:
build-and-release:
if: ${{ github.event.repository.fork == false }}
name: 🚀 Build and Release .saver
runs-on: macos-14
outputs:
build_number: ${{ steps.extract_build_number.outputs.build_number }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 1

Expand All @@ -25,7 +26,7 @@ jobs:
xcode-version: latest

- name: 💾 Cache DerivedData
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/Library/Developer/Xcode/DerivedData
Expand Down Expand Up @@ -64,7 +65,7 @@ jobs:
git push -f origin ${{ steps.extract_build_number.outputs.build_number }}

- name: ⬆️ Upload .saver to Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
with:
files: build/Fruit.saver.tar.gz
tag_name: ${{ steps.extract_build_number.outputs.build_number }}
Expand All @@ -74,18 +75,19 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

bump-homebrew-cask:
if: ${{ github.event.repository.fork == false }}
name: 🍺 Bump Homebrew Cask
runs-on: ubuntu-latest
needs: build-and-release
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 1
- name: 🍺 Bump Homebrew Cask
uses: kitschpatrol/github-action-homebrew-bump-cask@v3.8.6
uses: kitschpatrol/github-action-homebrew-bump-cask@v4
with:
tap: Corkscrews/homebrew-cask
cask: fruit-screensaver
tag: ${{ needs.build-and-release.outputs.build_number }}
token: ${{ secrets.HOMEBREW_TOKEN }}
no-fork: true
no-fork: true
55 changes: 28 additions & 27 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,38 @@ jobs:
image: ghcr.io/realm/swiftlint:latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/checkout@v6
with:
fetch-depth: 1

- name: 🧹 SwiftLint
run: swiftlint --reporter github-actions-logging --strict
- name: 🧹 SwiftLint
run: swiftlint --reporter github-actions-logging --strict

build:
name: 🏗️ Build
runs-on: macos-14

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: 🛠️ Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest

- name: 💾 Cache DerivedData
uses: actions/cache@v4
with:
path: ~/Library/Developer/Xcode/DerivedData
key: ${{ runner.os }}-xcode-deriveddata-${{ hashFiles('**/*.pbxproj', '**/*.swift') }}
restore-keys: |
${{ runner.os }}-xcode-deriveddata-

- name: 🏗️ Build Fruit.saver
run: xcodebuild -scheme Fruit -configuration Debug build | tail -20

- name: 🏗️ Build FruitShop
run: xcodebuild -scheme FruitShop -configuration Debug build | tail -20
- uses: actions/checkout@v6
with:
fetch-depth: 1

- name: 🛠️ Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest

- name: 💾 Cache DerivedData
uses: actions/cache@v5
with:
path: ~/Library/Developer/Xcode/DerivedData
key: ${{ runner.os }}-xcode-deriveddata-${{ hashFiles('**/*.pbxproj',
'**/*.swift') }}
restore-keys: |
${{ runner.os }}-xcode-deriveddata-

- name: 🏗️ Build Fruit.saver
run: xcodebuild -scheme Fruit -configuration Debug build | tail -20

- name: 🏗️ Build FruitShop
run: xcodebuild -scheme FruitShop -configuration Debug build | tail -20