Add CI workflow and update build configurations

This commit is contained in:
netkas 2024-09-29 21:36:05 -04:00
parent 0dbf477f7b
commit ae61b3fadf
6 changed files with 207 additions and 7 deletions

View file

@ -1,8 +1,23 @@
build:
ncc build --config="release" --log-level debug
# Variables
CONFIG ?= release
LOG_LEVEL = debug
OUTDIR = build/$(CONFIG)
PACKAGE = $(OUTDIR)/net.nosial.tgbotlib.ncc
install:
sudo ncc package install --package="build/release/net.nosial.tgbotlib.ncc" --skip-dependencies --reinstall -y --log-level debug
# Default Target
all: build
# Build Steps
build:
ncc build --config=$(CONFIG) --log-level $(LOG_LEVEL)
install: build
ncc package install --package=$(PACKAGE) --skip-dependencies --build-source --reinstall -y --log-level $(LOG_LEVEL)
test: build
phpunit
clean:
rm -rf build
rm -rf build
.PHONY: all build install test clean