Skip to content

Commit 297148e

Browse files
committed
ci: 更新build.yml,取消PT1点自动执行。
1 parent 91fdc28 commit 297148e

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Build Lamina Interpreter
22

3-
# Nightly build + manual trigger
3+
# Nightly build(X) + manual trigger
44
on:
55
# Run nightly at 01:00 PT (Pacific Time) -> UTC 08:00; adjust cron as needed
6-
schedule:
7-
- cron: '0 8 * * *'
6+
#schedule:
7+
# - cron: '0 8 * * *'
88
# Allow manual runs from the Actions UI
99
workflow_dispatch: {}
1010
# Keep PR-triggered builds enabled for pull requests
@@ -470,30 +470,41 @@ jobs:
470470
signing-policy-slug: 'release-signing'
471471
artifact-configuration-slug: 'Lamina_on_Windows'
472472
github-artifact-id: '${{ steps.upload-artifact.outputs.artifact-id }}'
473-
wait-for-completion: true
473+
wait-for-completion: false
474474
output-artifact-directory: 'artifacts/signed'
475475
parameters: |
476-
version: "1.1.1"
476+
version: "${{ steps.extract-version.outputs.version || '1.1.1' }}"
477477
478478
- name: Package signed artifacts (Windows)
479479
if: runner.os == 'Windows'
480+
continue-on-error: true
480481
shell: pwsh
481482
env:
482483
ZIP_NAME: "Lamina-${{ matrix.target }}-signed.zip"
483484
run: |
485+
# 如果没有签名产物则跳过打包以避免失败
486+
$signedFiles = Get-ChildItem -Path "artifacts/signed" -File -Recurse -ErrorAction SilentlyContinue
487+
if (-not $signedFiles) {
488+
Write-Output "No signed artifacts found in artifacts/signed — skipping packaging."
489+
exit 0
490+
}
491+
484492
# Ensure output dir exists
485493
New-Item -ItemType Directory -Path artifacts -Force | Out-Null
486494
# Remove existing zip if present
487495
if (Test-Path "artifacts/$env:ZIP_NAME") { Remove-Item "artifacts/$env:ZIP_NAME" -Force }
496+
488497
# Package all signed files into a single zip
489-
Compress-Archive -Path "artifacts/signed/*" -DestinationPath "artifacts/$env:ZIP_NAME" -Force
498+
$paths = $signedFiles | ForEach-Object { $_.FullName }
499+
Compress-Archive -Path $paths -DestinationPath "artifacts/$env:ZIP_NAME" -Force
490500
Write-Output "Packaged signed artifacts: artifacts/$env:ZIP_NAME"
491501
492502
- name: Upload signed artifact (Windows)
493503
if: runner.os == 'Windows'
504+
continue-on-error: true
494505
uses: actions/upload-artifact@v4
495506
with:
496507
name: Lamina-${{ matrix.target }}-signed
497508
path: artifacts/Lamina-${{ matrix.target }}-signed.zip
498-
if-no-files-found: error
509+
if-no-files-found: warn
499510
retention-days: 30

0 commit comments

Comments
 (0)