refactor: update artifact naming in CI workflows and adjust test content for cache API
parent
ee5b9739a4
commit
5144b988cd
|
@ -42,13 +42,13 @@ jobs:
|
||||||
|
|
||||||
- name: Package artifact
|
- name: Package artifact
|
||||||
run: |
|
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
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.release_name }}
|
name: ${{ matrix.release_name }}
|
||||||
path: ${{ matrix.release_name }}
|
path: ${{ matrix.artifact_name }}
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
|
@ -71,14 +71,13 @@ jobs:
|
||||||
|
|
||||||
- name: Package artifact
|
- name: Package artifact
|
||||||
run: |
|
run: |
|
||||||
mkdir -p release-package
|
mv target/${{ matrix.target_triple }}/release/${{ matrix.artifact_name }} ${{ matrix.artifact_name }}
|
||||||
mv target/${{ matrix.target_triple }}/release/${{ matrix.artifact_name }} ${{ matrix.release_name }}
|
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.release_name }}
|
name: ${{ matrix.release_name }}
|
||||||
path: ${{ matrix.release_name }}
|
path: ${{ matrix.artifact_name }}
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
|
@ -108,11 +107,11 @@ jobs:
|
||||||
|
|
||||||
- name: Package artifact
|
- name: Package artifact
|
||||||
run: |
|
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
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.release_name }}
|
name: ${{ matrix.release_name }}
|
||||||
path: ${{ matrix.release_name }}
|
path: ${{ matrix.artifact_name }}
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
|
@ -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
|
// 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 need 1024 tokens
|
||||||
// models/gemini-2.5-flash-lite need 2048 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 {
|
GeminiRequest {
|
||||||
model: Some("models/gemini-2.5-flash-lite".to_string()),
|
model: Some("models/gemini-2.5-flash".to_string()),
|
||||||
contents: vec![ContentPart {
|
contents: vec![ContentPart {
|
||||||
parts: vec![TextPart { text: long_text }],
|
parts: vec![TextPart { text: long_text }],
|
||||||
role: Some("user".to_string()),
|
role: Some("user".to_string()),
|
||||||
|
|
Loading…
Reference in New Issue