chore: import upstream snapshot with attribution
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user