Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

Update workflows

grohith327690b26c0b2d1
diff --git a/.github/workflows/awaiting-response.yml b/.github/workflows/awaiting-response.yml
index c65277c9..bd8be6f4 100644
--- a/.github/workflows/awaiting-response.yml
+++ b/.github/workflows/awaiting-response.yml
@@ -6,7 +6,7 @@ on:
issue_comment:
types: [created]
schedule:
- - cron: "17 * * * *"
+ - cron: "17 7 * * *"
workflow_dispatch:
permissions:
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 97df28a3..d212c129 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -3,6 +3,7 @@ name: Build and Test
on:
pull_request:
branches: [ main ]
+ types: [opened, synchronize, reopened, ready_for_review]
push:
branches: [ main ]
@@ -11,18 +12,65 @@ concurrency:
cancel-in-progress: true
jobs:
+ changes:
+ name: Detect build changes
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ outputs:
+ relevant: ${{ steps.filter.outputs.relevant }}
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 2
+
+ - name: Detect build-related changes
+ id: filter
+ uses: dorny/paths-filter@v3
+ with:
+ filters: |
+ relevant:
+ - 'Sources/**'
+ - 'Tests/**'
+ - 'Fluid.xcodeproj/**'
+ - 'Package.swift'
+ - 'Package.resolved'
+ - 'Info.plist'
+ - 'Fluid.entitlements'
+ - '.swiftlint.yml'
+ - '.github/workflows/build.yml'
+
+ lint:
+ name: SwiftLint
+ if: needs.changes.outputs.relevant == 'true' && (github.event_name == 'push' || github.event.pull_request.draft == false)
+ needs: changes
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Run SwiftLint (strict)
+ run: |
+ docker run --rm \
+ --volume "$PWD:$PWD" \
+ --workdir "$PWD" \
+ ghcr.io/realm/swiftlint:0.63.2 \
+ lint --strict --config .swiftlint.yml
+
build:
name: Build FluidVoice
+ if: needs.changes.outputs.relevant == 'true' && needs.lint.result == 'success'
+ needs: [changes, lint]
runs-on: macos-latest
- timeout-minutes: 40
+ timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@v4
- - name: Install SwiftLint
- run: brew install swiftlint
-
- name: Install xcpretty
run: sudo gem install xcpretty
@@ -32,9 +80,6 @@ jobs:
path: ~/Library/Caches/WhisperModels
key: ${{ runner.os }}-whisper-models-v1
- - name: Run SwiftLint (strict)
- run: swiftlint --strict --config .swiftlint.yml
-
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
@@ -43,23 +88,7 @@ jobs:
- name: Show Xcode version
run: xcodebuild -version
- - name: Resolve Swift Package Dependencies
- run: xcodebuild -resolvePackageDependencies -project Fluid.xcodeproj -scheme Fluid
-
- - name: Build Project
- run: |
- set -o pipefail
- xcodebuild clean build \
- -project Fluid.xcodeproj \
- -scheme Fluid \
- -destination 'platform=macOS,arch=arm64' \
- CODE_SIGN_IDENTITY="" \
- CODE_SIGNING_REQUIRED=NO \
- CODE_SIGNING_ALLOWED=NO \
- | xcpretty
- continue-on-error: false
-
- - name: Run Tests
+ - name: Build and test
run: |
set -o pipefail
xcodebuild test \
@@ -69,4 +98,4 @@ jobs:
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
- | xcpretty
\ No newline at end of file
+ | xcpretty
diff --git a/.github/workflows/pr-policy.yml b/.github/workflows/pr-policy.yml
index aff4d123..29eeee9c 100644
--- a/.github/workflows/pr-policy.yml
+++ b/.github/workflows/pr-policy.yml
@@ -4,7 +4,7 @@ on:
pull_request_target:
types: [opened, edited, synchronize, reopened, ready_for_review]
schedule:
- - cron: "17 * * * *"
+ - cron: "17 8 * * *"
workflow_dispatch:
permissions: