diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-18 15:32:28 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-18 20:51:19 +0300 |
commit | ca3ac59b71a1d613f7d978f12d9593f68b7ee907 (patch) | |
tree | 79a02e4d3c3e657040b39b0df1eab796a86fbff4 /project/ci/dirs.py | |
parent | project.ci: --install picks the directory automatically (diff) | |
download | cmake-common-ca3ac59b71a1d613f7d978f12d9593f68b7ee907.tar.gz cmake-common-ca3ac59b71a1d613f7d978f12d9593f68b7ee907.zip |
project.ci: add GitHub Actions
Diffstat (limited to 'project/ci/dirs.py')
-rw-r--r-- | project/ci/dirs.py | 17 |
1 files changed, 17 insertions, 0 deletions
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 [] |