pipeline {
	agent {
		label 'linux-x86_64'
	}
	environment {
		VCPKG_DIR_BASE = '/var/lib/vcpkg/nostalgia/'
	}
	stages {
		stage('Environment') {
			steps {
				sh 'make vcpkg'
			}
		}
		stage('Build Asan') {
			steps {
				sh 'make purge configure-asan'
				sh 'make'
			}
		}
		stage('Test Asan') {
			steps {
				sh 'make test'
			}
		}
		stage('Build Debug') {
			steps {
				sh 'make purge configure-debug'
				sh 'make'
			}
		}
		stage('Test Debug') {
			steps {
				sh 'make test'
			}
		}
		stage('Build Release') {
			steps {
				sh 'make purge configure-release'
				sh 'make'
			}
		}
		stage('Test Release') {
			steps {
				sh 'make test'
			}
		}
	}
}
