refactor: update artifact naming in CI workflows and adjust test content for cache API

main
Yoo1tic 2025-08-11 19:48:47 +08:00
parent ee5b9739a4
commit 5144b988cd
2 changed files with 8 additions and 9 deletions

View File

@ -42,13 +42,13 @@ jobs:
- name: Package artifact
run: |
mv target/${{ matrix.target_triple }}/release/${{ matrix.artifact_name }} ${{ matrix.release_name }}
mv target/${{ matrix.target_triple }}/release/${{ matrix.artifact_name }} ${{ matrix.artifact_name }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.release_name }}
path: ${{ matrix.release_name }}
path: ${{ matrix.artifact_name }}
retention-days: 30
windows:
@ -71,14 +71,13 @@ jobs:
- name: Package artifact
run: |
mkdir -p release-package
mv target/${{ matrix.target_triple }}/release/${{ matrix.artifact_name }} ${{ matrix.release_name }}
mv target/${{ matrix.target_triple }}/release/${{ matrix.artifact_name }} ${{ matrix.artifact_name }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.release_name }}
path: ${{ matrix.release_name }}
path: ${{ matrix.artifact_name }}
retention-days: 30
macos:
@ -108,11 +107,11 @@ jobs:
- name: Package artifact
run: |
mv target/${{ matrix.target_triple }}/release/${{ matrix.artifact_name }} ${{ matrix.release_name }}
mv target/${{ matrix.target_triple }}/release/${{ matrix.artifact_name }} ${{ matrix.artifact_name }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.release_name }}
path: ${{ matrix.release_name }}
path: ${{ matrix.artifact_name }}
retention-days: 30

View File

@ -67,9 +67,9 @@ pub static CACHE_CONTENT_TEST_BODY: LazyLock<GeminiRequest> = LazyLock::new(|| {
// Generate random text content to meet the minimum 2048 tokens requirement for cache API
// models/gemini-2.5-flash need 1024 tokens
// models/gemini-2.5-flash-lite need 2048 tokens
let long_text = "You are an expert at analyzing transcripts.".repeat(260);
let long_text = "You are an expert at analyzing transcripts.".repeat(128);
GeminiRequest {
model: Some("models/gemini-2.5-flash-lite".to_string()),
model: Some("models/gemini-2.5-flash".to_string()),
contents: vec![ContentPart {
parts: vec![TextPart { text: long_text }],
role: Some("user".to_string()),