amxx-builder 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +111 -0
- package/README.md +485 -0
- package/action-entry.js +42 -0
- package/action.yml +55 -0
- package/defaults/amxbuild.defaults.yml +40 -0
- package/index.js +4 -0
- package/mcp/dep-resolver.js +75 -0
- package/mcp/handlers.js +862 -0
- package/mcp/mcp-server.js +112 -0
- package/mcp/registry.js +863 -0
- package/mcp/symbol-index.js +171 -0
- package/package.json +68 -0
- package/src/archiver.js +140 -0
- package/src/asset-fetcher.js +277 -0
- package/src/build-plan.js +101 -0
- package/src/build-service.js +188 -0
- package/src/cache-dir.js +21 -0
- package/src/cache-info.js +104 -0
- package/src/cli.js +302 -0
- package/src/collector.js +89 -0
- package/src/commands/build.js +49 -0
- package/src/commands/cache.js +77 -0
- package/src/commands/clean.js +33 -0
- package/src/commands/compile-renderer.js +38 -0
- package/src/commands/deploy.js +40 -0
- package/src/commands/deps-tree.js +92 -0
- package/src/commands/doctor.js +77 -0
- package/src/commands/dry-run.js +64 -0
- package/src/commands/init.js +228 -0
- package/src/commands/mcp.js +13 -0
- package/src/commands/releases.js +45 -0
- package/src/commands/resolve-manifest.js +27 -0
- package/src/commands/serve.js +489 -0
- package/src/commands/shared.js +24 -0
- package/src/commands/validate.js +34 -0
- package/src/commands/watch.js +209 -0
- package/src/compile-utils.js +65 -0
- package/src/compiler-fetcher.js +327 -0
- package/src/compiler.js +228 -0
- package/src/dep-graph.js +92 -0
- package/src/deployer.js +197 -0
- package/src/deps-resolver.js +127 -0
- package/src/deps-tree.js +202 -0
- package/src/env.js +18 -0
- package/src/events.js +29 -0
- package/src/format.js +23 -0
- package/src/fs-utils.js +87 -0
- package/src/include-tree.js +845 -0
- package/src/ini-builder.js +44 -0
- package/src/jsonrpc-transport.js +195 -0
- package/src/logger.js +50 -0
- package/src/manifest-path.js +34 -0
- package/src/manifest.js +373 -0
- package/src/progress.js +66 -0
- package/src/rcon.js +103 -0
- package/src/release-fetcher.js +206 -0
- package/src/release-lister.js +79 -0
- package/src/repo-fetcher.js +273 -0
- package/src/retry.js +50 -0
- package/src/schema.js +54 -0
- package/src/update-check.js +114 -0
- package/src/validate.js +69 -0
- package/src/watcher.js +135 -0
- package/templates/init-build.bat +11 -0
- package/templates/init-build.sh +7 -0
- package/templates/init-deploy.env +14 -0
- package/templates/init-manifest.yml +6 -0
- package/templates/init-workflow.yml +59 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
REM Quick-build script generated by `amxb init --script`
|
|
3
|
+
REM Builds the server package from amxbuild.yml in this directory.
|
|
4
|
+
amxb build
|
|
5
|
+
if errorlevel 1 (
|
|
6
|
+
echo.
|
|
7
|
+
echo Build failed. Fix the errors above and run this script again.
|
|
8
|
+
pause
|
|
9
|
+
exit /b 1
|
|
10
|
+
)
|
|
11
|
+
pause
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# amxx-builder deploy configuration
|
|
2
|
+
# Used by: amxb deploy, amxb watch
|
|
3
|
+
|
|
4
|
+
# Server root directory — files are deployed relative to this path
|
|
5
|
+
# Example: /home/user/hlds/cstrike or C:\hlds\cstrike
|
|
6
|
+
AMXB_DEPLOY_PATH=
|
|
7
|
+
|
|
8
|
+
# GoldSrc UDP RCON — leave blank to skip RCON after deploy
|
|
9
|
+
AMXB_DEPLOY_RCON_HOST=127.0.0.1
|
|
10
|
+
AMXB_DEPLOY_RCON_PORT=27015
|
|
11
|
+
AMXB_DEPLOY_RCON_PASSWORD=
|
|
12
|
+
# {plugin} is replaced with the plugin name (without .amxx extension)
|
|
13
|
+
# Leave blank to disable RCON commands
|
|
14
|
+
AMXB_DEPLOY_RCON_CMD=amxx load {plugin}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [master, feature/**, fix/**]
|
|
6
|
+
paths-ignore:
|
|
7
|
+
- "**.md"
|
|
8
|
+
pull_request:
|
|
9
|
+
types: [opened, reopened, synchronize]
|
|
10
|
+
release:
|
|
11
|
+
types: [published]
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build:
|
|
15
|
+
name: Build
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
outputs:
|
|
18
|
+
sha: ${{ steps.sha.outputs.SHORT }}
|
|
19
|
+
name: ${{ steps.build.outputs.name }}
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v5
|
|
22
|
+
|
|
23
|
+
- id: sha
|
|
24
|
+
run: echo "SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
|
25
|
+
|
|
26
|
+
- id: build
|
|
27
|
+
uses: AmxxModularEcosystem/amxx-builder@{{actionTag}}
|
|
28
|
+
with:
|
|
29
|
+
set: |
|
|
30
|
+
output.pack=false
|
|
31
|
+
output.dir=./artifact
|
|
32
|
+
|
|
33
|
+
- uses: actions/upload-artifact@v5
|
|
34
|
+
with:
|
|
35
|
+
name: ${{ steps.build.outputs.name }}-${{ steps.sha.outputs.SHORT }}-dev
|
|
36
|
+
path: artifact/
|
|
37
|
+
|
|
38
|
+
publish:
|
|
39
|
+
name: Publish release
|
|
40
|
+
runs-on: ubuntu-latest
|
|
41
|
+
needs: [build]
|
|
42
|
+
if: |
|
|
43
|
+
github.event_name == 'release' &&
|
|
44
|
+
github.event.action == 'published' &&
|
|
45
|
+
startsWith(github.ref, 'refs/tags/')
|
|
46
|
+
steps:
|
|
47
|
+
- uses: actions/download-artifact@v5
|
|
48
|
+
with:
|
|
49
|
+
name: ${{ needs.build.outputs.name }}-${{ needs.build.outputs.sha }}-dev
|
|
50
|
+
path: artifact/
|
|
51
|
+
|
|
52
|
+
- name: Package for release
|
|
53
|
+
run: |
|
|
54
|
+
cd artifact
|
|
55
|
+
zip -r "../${{ needs.build.outputs.name }}-${{ github.ref_name }}.zip" .
|
|
56
|
+
|
|
57
|
+
- uses: softprops/action-gh-release@v2
|
|
58
|
+
with:
|
|
59
|
+
files: "${{ needs.build.outputs.name }}-*.zip"
|