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.
Files changed (68) hide show
  1. package/AGENTS.md +111 -0
  2. package/README.md +485 -0
  3. package/action-entry.js +42 -0
  4. package/action.yml +55 -0
  5. package/defaults/amxbuild.defaults.yml +40 -0
  6. package/index.js +4 -0
  7. package/mcp/dep-resolver.js +75 -0
  8. package/mcp/handlers.js +862 -0
  9. package/mcp/mcp-server.js +112 -0
  10. package/mcp/registry.js +863 -0
  11. package/mcp/symbol-index.js +171 -0
  12. package/package.json +68 -0
  13. package/src/archiver.js +140 -0
  14. package/src/asset-fetcher.js +277 -0
  15. package/src/build-plan.js +101 -0
  16. package/src/build-service.js +188 -0
  17. package/src/cache-dir.js +21 -0
  18. package/src/cache-info.js +104 -0
  19. package/src/cli.js +302 -0
  20. package/src/collector.js +89 -0
  21. package/src/commands/build.js +49 -0
  22. package/src/commands/cache.js +77 -0
  23. package/src/commands/clean.js +33 -0
  24. package/src/commands/compile-renderer.js +38 -0
  25. package/src/commands/deploy.js +40 -0
  26. package/src/commands/deps-tree.js +92 -0
  27. package/src/commands/doctor.js +77 -0
  28. package/src/commands/dry-run.js +64 -0
  29. package/src/commands/init.js +228 -0
  30. package/src/commands/mcp.js +13 -0
  31. package/src/commands/releases.js +45 -0
  32. package/src/commands/resolve-manifest.js +27 -0
  33. package/src/commands/serve.js +489 -0
  34. package/src/commands/shared.js +24 -0
  35. package/src/commands/validate.js +34 -0
  36. package/src/commands/watch.js +209 -0
  37. package/src/compile-utils.js +65 -0
  38. package/src/compiler-fetcher.js +327 -0
  39. package/src/compiler.js +228 -0
  40. package/src/dep-graph.js +92 -0
  41. package/src/deployer.js +197 -0
  42. package/src/deps-resolver.js +127 -0
  43. package/src/deps-tree.js +202 -0
  44. package/src/env.js +18 -0
  45. package/src/events.js +29 -0
  46. package/src/format.js +23 -0
  47. package/src/fs-utils.js +87 -0
  48. package/src/include-tree.js +845 -0
  49. package/src/ini-builder.js +44 -0
  50. package/src/jsonrpc-transport.js +195 -0
  51. package/src/logger.js +50 -0
  52. package/src/manifest-path.js +34 -0
  53. package/src/manifest.js +373 -0
  54. package/src/progress.js +66 -0
  55. package/src/rcon.js +103 -0
  56. package/src/release-fetcher.js +206 -0
  57. package/src/release-lister.js +79 -0
  58. package/src/repo-fetcher.js +273 -0
  59. package/src/retry.js +50 -0
  60. package/src/schema.js +54 -0
  61. package/src/update-check.js +114 -0
  62. package/src/validate.js +69 -0
  63. package/src/watcher.js +135 -0
  64. package/templates/init-build.bat +11 -0
  65. package/templates/init-build.sh +7 -0
  66. package/templates/init-deploy.env +14 -0
  67. package/templates/init-manifest.yml +6 -0
  68. 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,7 @@
1
+ #!/usr/bin/env bash
2
+ # Quick-build script generated by `amxb init --script`
3
+ # Builds the server package from amxbuild.yml in this directory.
4
+ set -euo pipefail
5
+
6
+ cd "$(dirname "$0")"
7
+ amxb build
@@ -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,6 @@
1
+ # yaml-language-server: $schema={{schemaUrl}}
2
+
3
+ name: {{name}}
4
+
5
+ deps:
6
+ # - org/repo@tag
@@ -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"