# https://taskfile.dev #Called by the vnbuild system to produce builds for my website #https://www.vaughnnugent.com/resources/software #This taskfile performs the build operations for a module, it handles #git code updates, msbuild on solutions, and sleet NuGet feed pushes. #this file must be in the same directory as the solution file version: '3' tasks: #called by build pipeline to sync repo update: cmds: - git reset --hard - git remote update - git pull origin {{ .BRANCH_NAME }} --verify-signatures #updates the project versions for all inlcuded .NET projects - dotnet-gitversion.exe /updateprojectfiles test: desc: 'Builds and runs noscrypt unit tests for vnbuild CI systems' cmds: #run CI tests with utils enabled - cmd: task test -- -DNC_ENABLE_UTILS=ON - cmd: wsl task test -- -DNC_ENABLE_UTILS=ON - cmd: wsl task memcheck - cmd: task test-mbedtls -- -DNC_ENABLE_UTILS=ON #called by build pipeline to build module build: cmds: - echo "building module {{.MODULE_NAME}}" publish: cmds: #git archive in the module directory - git archive --format {{.ARCHIVE_FILE_FORMAT}} --output {{.ARCHIVE_FILE_NAME}} HEAD #called by build pipeline to clean module clean: cmds: #clean solution - cmd: powershell -Command "rm out/ -Recurse " ignore_error: true