From ca3ac59b71a1d613f7d978f12d9593f68b7ee907 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 18 Jan 2021 15:32:28 +0300 Subject: project.ci: add GitHub Actions --- project/ci/dirs.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'project/ci/dirs.py') diff --git a/project/ci/dirs.py b/project/ci/dirs.py index 4e61015..6c6de65 100644 --- a/project/ci/dirs.py +++ b/project/ci/dirs.py @@ -100,3 +100,20 @@ class AppVeyor(Dirs): def get_cmake_args(self): return ['-G', str(Generator.from_image(Image.get()))] + + +class GitHub(Dirs): + def get_platform(self): + return Platform.parse(env('platform')) + + def get_configuration(self): + return Configuration.parse(env('configuration')) + + def get_src_dir(self): + return env('GITHUB_WORKSPACE') + + def get_build_dir(self): + return os.path.dirname(env('GITHUB_WORKSPACE')) + + def get_cmake_args(self): + return [] -- cgit v1.2.3