This GitHub Action installs MonetDB. It can be used to test projects that interact with MonetDB. For example,
run_mclient:
runs-on: ubuntu-latest
steps:
- uses: MonetDB/install-monetdb@v0.6
- run: mclient -d demo -s 'SELECT * FROM environment'
The step uses: MonetDB/install-monetdb@v0.6
takes care of
- Installing MonetDB and putting it on the PATH
- Creating a database 'demo'
- Starting the server
- Creating a '.monetdb' file with user=monetdb and password=monetdb
It works on Linux, MacOS and Windows runners.
- On Linux, it installs .deb or .rpm packages downloaded from monetdb.org.
- On Windows, it uses .msi installers from monetdb.org.
- On MacOS, it installs MonetDB from Homebrew.
NOTE Not everything works as it's supposed to yet:
- On Windows,
mclient
does not work, for unclear reasons.- On MacOS, only the latest version can be installed because earlier versions are no longer available through Homebrew.
See CHANGELOG for the release history of this Action.
- version: Version to install, either as a number (11.51.5) or as a name (Aug2024-SP1). Names with underscores (Aug2024_SP1) are also accepted. The default is to install the latest version.
-
prefix: Directory under which MonetDB will be installed. For example,
/usr/local
,/opt
orC:\Program Files\MonetDB\MonetDB5
. -
bindir: Directory where executables have been installed. Contains
mclient
ormclient.bat
. -
libdir: Directory where libraries have been installed. Contains
libmonetdbe.so
,libmonetdbe.dylib
ormonetdbe.lib
. -
includedir: Directory where header files have been installed. Contains
monetdbe_config.h
.