Updated Build System & .gitignore
This commit is contained in:
parent
705bbe6b3c
commit
1a130d948c
2 changed files with 61 additions and 1 deletions
61
.github/workflows/ncc_workflow.yml
vendored
61
.github/workflows/ncc_workflow.yml
vendored
|
@ -234,6 +234,7 @@ jobs:
|
||||||
|
|
||||||
- name: Install latest version of NCC
|
- name: Install latest version of NCC
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
git clone https://git.n64.cc/nosial/ncc.git
|
git clone https://git.n64.cc/nosial/ncc.git
|
||||||
cd ncc
|
cd ncc
|
||||||
make redist
|
make redist
|
||||||
|
@ -426,4 +427,62 @@ jobs:
|
||||||
- name: Run PHPUnit tests
|
- name: Run PHPUnit tests
|
||||||
run: |
|
run: |
|
||||||
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-artifacts:
|
||||||
|
needs: [release, release-compressed, release-executable, release-executable-compressed, debug, debug-compressed, test]
|
||||||
|
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 release artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: release
|
||||||
|
path: release
|
||||||
|
- name: Download release-compressed artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: release-compressed
|
||||||
|
path: release-compressed
|
||||||
|
- name: Download release-executable artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: release-executable
|
||||||
|
path: release-executable
|
||||||
|
- name: Download release-executable-compressed artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: release-executable-compressed
|
||||||
|
path: release-executable-compressed
|
||||||
|
- name: Download debug artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: debug
|
||||||
|
path: debug
|
||||||
|
- name: Download debug-compressed artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: debug-compressed
|
||||||
|
path: debug-compressed
|
||||||
|
|
||||||
|
|
||||||
|
- name: Upload to GitHub Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
release/net.nosial.tgbotlib.ncc
|
||||||
|
release-compressed/net.nosial.tgbotlib.gz.ncc
|
||||||
|
release-executable/TgBotLib
|
||||||
|
release-executable-compressed/TgBotLib_gz
|
||||||
|
debug/net.nosial.tgbotlib.ncc
|
||||||
|
debug-compressed/net.nosial.tgbotlib.gz.ncc
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@ tests/token.txt
|
||||||
/.idea/php-test-framework.xml
|
/.idea/php-test-framework.xml
|
||||||
/.idea/gbrowser_project.xml
|
/.idea/gbrowser_project.xml
|
||||||
/.phpdoc/
|
/.phpdoc/
|
||||||
|
!/.github/workflows/ncc_workflow.yml
|
||||||
|
|
Loading…
Add table
Reference in a new issue