sourcemod/tools/buildbot/ToolsPackageScript
peace-maker 845c20ad93
Start using Github Actions (#1488)
* Start using Github Actions

Build on windows and linux. Cannot build for macos,
since the builders only support xcode 10+ which dropped
x86 support.

* Build sourcepawn tooling as separate package

Upload build artifacts containing only spcomp and the includes.
This adds a new `--scripting-only` flag to configure.py which skips
everything and goes straight to building spcomp and packaging the
include folder with it.

* Only run the workflows for the master branch

* Split common operations into PackageHelpers file

Don't duplicate the code for packaging releases for the tooling-only packages. Instead use a common `PackageHelpers` class which provides the functionality common to both packages.

This replaces the explicit list of files to package with a directory scan, so we don't have to list them all.

The pgsql sql-init-scripts were missing from the release package before, so they were added here as well. Three scripts from the testsuite were missing from the explicit list (mapdisplayname, floats, findmap), so they're now included.

* Fix Python 2 compatibility

os.scandir is Python 3 only.
2021-05-09 01:46:08 +02:00

12 lines
270 B
Python

# vim: set ts=8 sts=2 sw=2 tw=99 et ft=python:
builder.SetBuildFolder('package')
helpers = SM.package_helpers
helpers.builder = builder
helpers.CreateFolders(['.', 'include'])
helpers.CopySpcomp('.')
helpers.CopyIncludes('include')
helpers.CopyFiles('licenses', '.')