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
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: debug-executable
|
name: debug-executable
|
||||||
path: build/release/debug_executable_gz
|
path: build/debug/debug_executable_gz
|
||||||
release-compressed-executable:
|
release-compressed-executable:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
|
@ -400,7 +400,7 @@ jobs:
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: debug-compressed-executable
|
name: debug-compressed-executable
|
||||||
path: build/release/debug_compressed_executable
|
path: build/debug/debug_compressed_executable
|
||||||
|
|
||||||
|
|
||||||
# Checking for phpunit.xml
|
# Checking for phpunit.xml
|
||||||
|
@ -526,32 +526,6 @@ jobs:
|
||||||
wget https://phar.phpunit.de/phpunit-11.3.phar
|
wget https://phar.phpunit.de/phpunit-11.3.phar
|
||||||
php phpunit-11.3.phar --configuration phpunit.xml
|
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:
|
upload-artifacts:
|
||||||
needs: [release, debug, release-compressed, debug-compressed, release-executable, debug-executable, release-compressed-executable, debug-compressed-executable, test]
|
needs: [release, debug, release-compressed, debug-compressed, release-executable, debug-executable, release-compressed-executable, debug-compressed-executable, test]
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
|
|
122
project.json
122
project.json
|
@ -5,6 +5,9 @@
|
||||||
"minimum_version": "8.0",
|
"minimum_version": "8.0",
|
||||||
"maximum_version": "8.2"
|
"maximum_version": "8.2"
|
||||||
},
|
},
|
||||||
|
"options": {
|
||||||
|
"create_symlink": true
|
||||||
|
},
|
||||||
"update_source": {
|
"update_source": {
|
||||||
"source": "nosial/libs.config@n64",
|
"source": "nosial/libs.config@n64",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -13,42 +16,14 @@
|
||||||
"host": "git.n64.cc",
|
"host": "git.n64.cc",
|
||||||
"ssl": true
|
"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": {
|
"assembly": {
|
||||||
"name": "ConfigLib",
|
"name": "ConfigLib",
|
||||||
"package": "net.nosial.configlib",
|
"package": "net.nosial.configlib",
|
||||||
|
"description": "ConfigLib is a library for reading and writing configuration files via the NCC Runtime API",
|
||||||
"company": "Nosial",
|
"company": "Nosial",
|
||||||
"copyright": "Copyright (c) 2022-2023 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",
|
"version": "1.1.2",
|
||||||
"uuid": "9347259e-8e4d-11ed-85a7-fd07cf28ef35"
|
"uuid": "9347259e-8e4d-11ed-85a7-fd07cf28ef35"
|
||||||
},
|
},
|
||||||
|
@ -63,31 +38,26 @@
|
||||||
{
|
{
|
||||||
"name": "net.nosial.optslib",
|
"name": "net.nosial.optslib",
|
||||||
"version": "latest",
|
"version": "latest",
|
||||||
"source_type": "remote",
|
|
||||||
"source": "nosial/libs.opts=latest@n64"
|
"source": "nosial/libs.opts=latest@n64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "net.nosial.loglib",
|
"name": "net.nosial.loglib",
|
||||||
"version": "latest",
|
"version": "latest",
|
||||||
"source_type": "remote",
|
|
||||||
"source": "nosial/libs.log=latest@n64"
|
"source": "nosial/libs.log=latest@n64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "com.symfony.filesystem",
|
"name": "com.symfony.filesystem",
|
||||||
"version": "latest",
|
"version": "latest",
|
||||||
"source_type": "remote",
|
|
||||||
"source": "symfony/filesystem=latest@packagist"
|
"source": "symfony/filesystem=latest@packagist"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "com.symfony.yaml",
|
"name": "com.symfony.yaml",
|
||||||
"version": "latest",
|
"version": "latest",
|
||||||
"source_type": "remote",
|
|
||||||
"source": "symfony/yaml=latest@packagist"
|
"source": "symfony/yaml=latest@packagist"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "com.symfony.process",
|
"name": "com.symfony.process",
|
||||||
"version": "latest",
|
"version": "latest",
|
||||||
"source_type": "remote",
|
|
||||||
"source": "symfony/process=latest@packagist"
|
"source": "symfony/process=latest@packagist"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -104,7 +74,89 @@
|
||||||
"define_constants": {
|
"define_constants": {
|
||||||
"DEBUG": "1"
|
"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