Skip to content

Commit d7e8e80

Browse files
committed
udpate caching
1 parent ec93340 commit d7e8e80

4 files changed

Lines changed: 33 additions & 11 deletions

File tree

.github/workflows/asr-benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
~/Library/Caches/Homebrew
3232
/usr/local/Cellar/ffmpeg
3333
/opt/homebrew/Cellar/ffmpeg
34-
key: ${{ runner.os }}-asr-${{ hashFiles('Package.resolved', 'Sources/FluidAudio/Frameworks/**') }}
34+
key: ${{ runner.os }}-asr-${{ hashFiles('Package.resolved', 'Sources/FluidAudio/Frameworks/**', 'Sources/FluidAudio/ModelRegistry.swift', 'Sources/FluidAudio/ModelNames.swift') }}
3535

3636
- name: Install ffmpeg
3737
run: |

.github/workflows/diarizer-benchmark.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,26 @@ jobs:
2525
with:
2626
swift-version: "6.1"
2727

28+
- name: Cache Swift packages and build
29+
uses: actions/cache@v4
30+
with:
31+
path: |
32+
.build
33+
~/Library/Caches/org.swift.swiftpm
34+
key: ${{ runner.os }}-diarizer-${{ hashFiles('Package.swift', 'Sources/FluidAudio/ModelRegistry.swift', 'Sources/FluidAudio/ModelNames.swift') }}
35+
36+
- name: Cache Diarizer models
37+
uses: actions/cache@v4
38+
with:
39+
path: ~/Library/Application Support/FluidAudio/Models/speaker-diarization-coreml
40+
key: ${{ runner.os }}-diarizer-models-${{ hashFiles('Sources/FluidAudio/ModelRegistry.swift', 'Sources/FluidAudio/ModelNames.swift') }}
41+
42+
- name: Cache AMI dataset
43+
uses: actions/cache@v4
44+
with:
45+
path: ~/FluidAudioDatasets/ami_official
46+
key: ${{ runner.os }}-ami-dataset-${{ hashFiles('Sources/FluidAudioCLI/DatasetParsers/DatasetDownloader.swift') }}
47+
2848
- name: Build package
2949
run: swift build
3050

.github/workflows/vad-benchmark.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,25 @@ jobs:
3030
path: |
3131
.build
3232
~/Library/Caches/org.swift.swiftpm
33-
key: ${{ runner.os }}-swift-6.1-${{ hashFiles('Package.swift') }}
33+
key: ${{ runner.os }}-swift-6.1-${{ hashFiles('Package.swift', 'Sources/FluidAudio/ModelRegistry.swift', 'Sources/FluidAudio/ModelNames.swift') }}
3434

3535
- name: Cache VAD models
3636
uses: actions/cache@v4
3737
with:
3838
path: ~/Library/Application Support/FluidAudio/Models/silero-vad-coreml
39-
key: ${{ runner.os }}-vad-models-v6
39+
key: ${{ runner.os }}-vad-models-${{ hashFiles('Sources/FluidAudio/ModelRegistry.swift', 'Sources/FluidAudio/ModelNames.swift') }}
4040

4141
- name: Cache VOiCES dataset
4242
uses: actions/cache@v4
4343
with:
4444
path: ~/Library/Application Support/FluidAudio/voicesSubset
45-
key: ${{ runner.os }}-voices-subset-v1
45+
key: ${{ runner.os }}-voices-subset-${{ hashFiles('Sources/FluidAudioCLI/Commands/VadBenchmark.swift') }}
4646

4747
- name: Cache MUSAN noise samples
4848
uses: actions/cache@v4
4949
with:
5050
path: ~/Library/Application Support/FluidAudio/vadDataset
51-
key: ${{ runner.os }}-vad-dataset-mini50-v1
51+
key: ${{ runner.os }}-vad-dataset-mini50-${{ hashFiles('Sources/FluidAudioCLI/DatasetParsers/DatasetDownloader.swift') }}
5252

5353
- name: Build
5454
run: swift build -c release

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,10 @@ swift run fluidaudio diarization-benchmark --auto-download
114114
```
115115

116116
**Xcode Scheme Configuration:**
117-
1. Edit Scheme → Run → Arguments Passed On Launch
118-
2. Add environment variable: `REGISTRY_URL` = `https://your-mirror.example.com`
119-
3. The custom registry will apply to all debug runs
117+
1. Edit Scheme → Run → Arguments
118+
2. Go to **Environment Variables** tab
119+
3. Click `+` and add: `REGISTRY_URL` = `https://your-mirror.example.com`
120+
4. The custom registry will apply to all debug runs
120121

121122
</details>
122123

@@ -136,9 +137,10 @@ swift run fluidaudio transcribe audio.wav
136137
```
137138

138139
**Xcode Scheme Configuration for Proxy:**
139-
1. Edit Scheme → Run → Arguments → Environment Variables
140-
2. Add `https_proxy` with your proxy URL
141-
3. FluidAudio will automatically route downloads through the proxy
140+
1. Edit Scheme → Run → Arguments
141+
2. Go to **Environment Variables** tab
142+
3. Click `+` and add: `https_proxy` = `http://proxy.company.com:8080`
143+
4. FluidAudio will automatically route downloads through the proxy
142144

143145
</details>
144146

0 commit comments

Comments
 (0)