add heavy build

This commit is contained in:
2025-12-23 11:00:33 +08:00
parent b95505feca
commit 24ea8bf578
10007 changed files with 310430 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
name: Build Heavy Service
run-name: Build Heavy Service by ${{ gitea.actor }}
on:
workflow_dispatch:
inputs:
file_count:
description: 'Number of files to generate (controls build time)'
required: false
default: '10000'
push:
branches:
- main
- master
pull_request:
jobs:
build-and-package:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker Image
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
# We don't push to a registry here since no credentials were provided,
# but the image is built and packaged locally in the runner.
push: false
tags: dummy-service:latest
# We set a high file count to ensure the build takes a significant amount of time
# to simulate a heavy workload in the CI system.
build-args: |
FILE_COUNT=${{ inputs.file_count || '10000' }}