-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update various CI tooling to latest version
- Loading branch information
Showing
6 changed files
with
59 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# coding: utf-8 | ||
from __future__ import unicode_literals, division, absolute_import, print_function | ||
|
||
import os | ||
import shutil | ||
|
||
from . import build_root, other_packages | ||
|
||
|
||
def run(): | ||
""" | ||
Cleans up CI dependencies - used for persistent GitHub Actions | ||
Runners since they don't clean themselves up. | ||
""" | ||
|
||
print("Removing ci dependencies") | ||
deps_dir = os.path.join(build_root, 'modularcrypto-deps') | ||
if os.path.exists(deps_dir): | ||
shutil.rmtree(deps_dir, ignore_errors=True) | ||
|
||
print("Removing modularcrypto packages") | ||
for other_package in other_packages: | ||
pkg_dir = os.path.join(build_root, other_package) | ||
if os.path.exists(pkg_dir): | ||
shutil.rmtree(pkg_dir, ignore_errors=True) | ||
print() | ||
|
||
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters