Updated Build System
This commit is contained in:
parent
ff2296c786
commit
b19eeb6720
2 changed files with 89 additions and 63 deletions
30
.github/workflows/ncc_workflow.yml
vendored
30
.github/workflows/ncc_workflow.yml
vendored
|
@ -302,7 +302,7 @@ jobs:
|
|||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: debug-executable
|
||||
path: build/release/debug_executable_gz
|
||||
path: build/debug/debug_executable_gz
|
||||
release-compressed-executable:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
|
@ -400,7 +400,7 @@ jobs:
|
|||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: debug-compressed-executable
|
||||
path: build/release/debug_compressed_executable
|
||||
path: build/debug/debug_compressed_executable
|
||||
|
||||
|
||||
# Checking for phpunit.xml
|
||||
|
@ -526,32 +526,6 @@ jobs:
|
|||
wget https://phar.phpunit.de/phpunit-11.3.phar
|
||||
php phpunit-11.3.phar --configuration phpunit.xml
|
||||
|
||||
upload-docs:
|
||||
needs: [generate-phpdoc]
|
||||
permissions: write-all
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: php:8.3
|
||||
if: github.event_name == 'release'
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Download documentation artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: documentation
|
||||
|
||||
- name: Upload to GitHub Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: |
|
||||
docs/
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
||||
upload-artifacts:
|
||||
needs: [release, debug, release-compressed, debug-compressed, release-executable, debug-executable, release-compressed-executable, debug-compressed-executable, test]
|
||||
permissions: write-all
|
||||
|
|
122
project.json
122
project.json
|
@ -5,6 +5,9 @@
|
|||
"minimum_version": "8.0",
|
||||
"maximum_version": "8.2"
|
||||
},
|
||||
"options": {
|
||||
"create_symlink": true
|
||||
},
|
||||
"update_source": {
|
||||
"source": "nosial/libs.config@n64",
|
||||
"repository": {
|
||||
|
@ -13,42 +16,14 @@
|
|||
"host": "git.n64.cc",
|
||||
"ssl": true
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"create_symlink": true
|
||||
}
|
||||
},
|
||||
"execution_policies":[
|
||||
{
|
||||
"name": "main",
|
||||
"runner": "php",
|
||||
"execute": {
|
||||
"target": "main",
|
||||
"working_directory": "%CWD%",
|
||||
"tty": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "setup",
|
||||
"runner": "php",
|
||||
"execute": {
|
||||
"target": "setup",
|
||||
"working_directory": "%CWD%",
|
||||
"tty": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"installer": {
|
||||
"post_install": [
|
||||
"setup"
|
||||
]
|
||||
},
|
||||
"assembly": {
|
||||
"name": "ConfigLib",
|
||||
"package": "net.nosial.configlib",
|
||||
"description": "ConfigLib is a library for reading and writing configuration files via the NCC Runtime API",
|
||||
"company": "Nosial",
|
||||
"copyright": "Copyright (c) 2022-2023 Nosial",
|
||||
"description": "ConfigLib is a library for reading and writing configuration files via the NCC Runtime API",
|
||||
"version": "1.1.2",
|
||||
"uuid": "9347259e-8e4d-11ed-85a7-fd07cf28ef35"
|
||||
},
|
||||
|
@ -63,31 +38,26 @@
|
|||
{
|
||||
"name": "net.nosial.optslib",
|
||||
"version": "latest",
|
||||
"source_type": "remote",
|
||||
"source": "nosial/libs.opts=latest@n64"
|
||||
},
|
||||
{
|
||||
"name": "net.nosial.loglib",
|
||||
"version": "latest",
|
||||
"source_type": "remote",
|
||||
"source": "nosial/libs.log=latest@n64"
|
||||
},
|
||||
{
|
||||
"name": "com.symfony.filesystem",
|
||||
"version": "latest",
|
||||
"source_type": "remote",
|
||||
"source": "symfony/filesystem=latest@packagist"
|
||||
},
|
||||
{
|
||||
"name": "com.symfony.yaml",
|
||||
"version": "latest",
|
||||
"source_type": "remote",
|
||||
"source": "symfony/yaml=latest@packagist"
|
||||
},
|
||||
{
|
||||
"name": "com.symfony.process",
|
||||
"version": "latest",
|
||||
"source_type": "remote",
|
||||
"source": "symfony/process=latest@packagist"
|
||||
}
|
||||
],
|
||||
|
@ -104,7 +74,89 @@
|
|||
"define_constants": {
|
||||
"DEBUG": "1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "release-compressed",
|
||||
"build_type": "ncc",
|
||||
"output": "build/release/%ASSEMBLY.PACKAGE%.gz.ncc",
|
||||
"options": {
|
||||
"compression": "high"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "debug-compressed",
|
||||
"build_type": "ncc",
|
||||
"output": "build/debug/%ASSEMBLY.PACKAGE%.gz.ncc",
|
||||
"options": {
|
||||
"compression": "high"
|
||||
},
|
||||
"define_constants": {
|
||||
"DEBUG": "1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "release-executable",
|
||||
"build_type": "executable",
|
||||
"output": "build/release/release_executable_gz",
|
||||
"options": {
|
||||
"ncc_configuration": "release"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "debug-executable",
|
||||
"build_type": "executable",
|
||||
"output": "build/debug/debug_executable_gz",
|
||||
"options": {
|
||||
"ncc_configuration": "debug"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "release-compressed-executable",
|
||||
"build_type": "executable",
|
||||
"output": "build/release/release_compressed_executable",
|
||||
"options": {
|
||||
"ncc_configuration": "release-compressed"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "debug-compressed-executable",
|
||||
"build_type": "executable",
|
||||
"output": "build/debug/debug_compressed_executable",
|
||||
"options": {
|
||||
"ncc_configuration": "debug-compressed"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"installer": {
|
||||
"post_install": [
|
||||
"setup"
|
||||
]
|
||||
},
|
||||
"execution_policies": [
|
||||
{
|
||||
"name": "main",
|
||||
"runner": "php",
|
||||
"execute": {
|
||||
"working_directory": "%CWD%",
|
||||
"silent": false,
|
||||
"tty": true,
|
||||
"timeout": null,
|
||||
"idle_timeout": null,
|
||||
"target": "main"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "setup",
|
||||
"runner": "php",
|
||||
"execute": {
|
||||
"working_directory": "%CWD%",
|
||||
"silent": false,
|
||||
"tty": true,
|
||||
"timeout": null,
|
||||
"idle_timeout": null,
|
||||
"target": "setup"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Reference in a new issue