chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:13:17 +08:00
commit 58ab8315aa
8961 changed files with 5602567 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
name: Nightly Build
on:
workflow_dispatch: # Allow manual trigger from GitHub Actions UI
schedule:
- cron: '0 1 * * *' # Runs at 1:00 AM UTC every day
jobs:
check-commits:
runs-on: windows-latest
outputs:
should_run: ${{ steps.check.outputs.should_run }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Check for commits in last 24h
id: check
run: |
git fetch origin main
$COMMITS = git rev-list --count --since="24 hours" origin/main
echo "Commits in last 24h: $COMMITS"
if ($COMMITS -gt 0) {
echo "should_run=true" >> $env:GITHUB_OUTPUT
} else {
echo "should_run=false" >> $env:GITHUB_OUTPUT
}
build:
needs: check-commits
if: needs.check-commits.outputs.should_run == 'true'
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build
- name: Package
uses: ./.github/actions/package
- name: Upload Installer
uses: actions/upload-artifact@v4
with:
name: installer
path: Installer\Output\*.exe
+17
View File
@@ -0,0 +1,17 @@
name: Pull Requests
on:
pull_request:
branches:
- main
jobs:
build:
if: github.event.pull_request.draft == false
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build