mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-24 23:10:56 +08:00
feat: finalize latest v0.97.0 updates
This commit is contained in:
@@ -33,12 +33,11 @@ jobs:
|
||||
|
||||
- name: Generate harness eval summary
|
||||
run: |
|
||||
mkdir -p "./artifacts/history"
|
||||
node scripts/harness-eval-runner.mjs \
|
||||
--output-json "./artifacts/harness-eval-summary.json" \
|
||||
--output-markdown "./artifacts/harness-eval-summary.md"
|
||||
cp "./artifacts/harness-eval-summary.json" "./artifacts/history/$(date -u +%Y%m%dT%H%M%SZ)-harness-eval-summary.json"
|
||||
ls -1t "./artifacts/history"/*.json 2>/dev/null | tail -n +31 | xargs -r rm -f
|
||||
--output-markdown "./artifacts/harness-eval-summary.md" \
|
||||
--record-history-dir "./artifacts/history" \
|
||||
--history-retain 30
|
||||
|
||||
- name: Generate harness eval trend
|
||||
run: |
|
||||
@@ -47,6 +46,13 @@ jobs:
|
||||
--output-json "./artifacts/harness-eval-trend.json" \
|
||||
--output-markdown "./artifacts/harness-eval-trend.md"
|
||||
|
||||
- name: Generate harness cleanup report
|
||||
run: |
|
||||
node scripts/report-generated-slop.mjs \
|
||||
--trend-input "./artifacts/harness-eval-trend.json" \
|
||||
--output-json "./artifacts/harness-cleanup-report.json" \
|
||||
--output-markdown "./artifacts/harness-cleanup-report.md"
|
||||
|
||||
- name: Upload harness eval artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
@@ -52,7 +52,6 @@ jobs:
|
||||
TAURI_SIGNING_PRIVATE_KEY_RAW: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
||||
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
|
||||
NODE_OPTIONS: --max-old-space-size=8192
|
||||
SCCACHE_NO_DAEMON: "1"
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -61,6 +60,11 @@ jobs:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.inputs.source_ref || github.ref }}
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
@@ -68,11 +72,6 @@ jobs:
|
||||
cache: "pnpm"
|
||||
cache-dependency-path: "pnpm-lock.yaml"
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
|
||||
- name: Setup Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
@@ -384,7 +383,11 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
TARGET_TRIPLE="${{ matrix.target }}"
|
||||
mapfile -t bundle_dirs < <(find . -type d -path "*/target/${TARGET_TRIPLE}/release/bundle" | sort)
|
||||
bundle_dirs=()
|
||||
while IFS= read -r bundle_dir; do
|
||||
[ -n "$bundle_dir" ] || continue
|
||||
bundle_dirs+=("$bundle_dir")
|
||||
done < <(find . -type d -path "*/target/${TARGET_TRIPLE}/release/bundle" | sort)
|
||||
if [ "${#bundle_dirs[@]}" -eq 0 ]; then
|
||||
echo "Bundle dir not created yet for ${TARGET_TRIPLE}"
|
||||
exit 0
|
||||
@@ -425,7 +428,11 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
TARGET_TRIPLE="${{ matrix.target }}"
|
||||
mapfile -t bundle_dirs < <(find . -type d -path "*/target/${TARGET_TRIPLE}/release/bundle" | sort)
|
||||
bundle_dirs=()
|
||||
while IFS= read -r bundle_dir; do
|
||||
[ -n "$bundle_dir" ] || continue
|
||||
bundle_dirs+=("$bundle_dir")
|
||||
done < <(find . -type d -path "*/target/${TARGET_TRIPLE}/release/bundle" | sort)
|
||||
if [ "${#bundle_dirs[@]}" -eq 0 ]; then
|
||||
echo "Bundle dir not created yet for ${TARGET_TRIPLE}"
|
||||
exit 0
|
||||
@@ -527,10 +534,14 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mapfile -d '' assets < <(
|
||||
assets=()
|
||||
while IFS= read -r asset; do
|
||||
[ -n "$asset" ] || continue
|
||||
assets+=("$asset")
|
||||
done < <(
|
||||
find "$BUNDLE_DIR" -type f \
|
||||
\( -name "*.dmg" -o -name "*.app.tar.gz" -o -name "*.app.tar.gz.sig" -o -name "latest*.json" \) \
|
||||
-print0 | sort -z
|
||||
| sort
|
||||
)
|
||||
|
||||
if [ "${#assets[@]}" -eq 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user