diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 21e3d62..169fae9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: build: # This is a *private* build container. # See docs/github_actions.md for more information. - container: ghcr.io/bfbbdecomp/bfbb-build:main + container: ghcr.io/bfbbdecomp/tssm-build:main runs-on: ubuntu-latest strategy: @@ -72,7 +72,7 @@ jobs: build-non-matching: # This is a *private* build container. # See docs/github_actions.md for more information. - container: ghcr.io/bfbbdecomp/bfbb-build:main + container: ghcr.io/bfbbdecomp/tssm-build:main runs-on: ubuntu-latest strategy: @@ -118,7 +118,7 @@ jobs: build-previous: # This is a *private* build container. # See docs/github_actions.md for more information. - container: ghcr.io/bfbbdecomp/bfbb-build:main + container: ghcr.io/bfbbdecomp/tssm-build:main runs-on: ubuntu-latest strategy: @@ -248,9 +248,9 @@ jobs: - name: Rename Artifacts run: | - mv artifacts/GQPE78_report/report.json artifacts/progress.json - mv artifacts/GQPE78_report/progress-commit.json artifacts/progress-commit.json - mv artifacts/GQPE78_previous/report.json artifacts/previous.json + mv artifacts/GGVE78_report/report.json artifacts/progress.json + mv artifacts/GGVE78_report/progress-commit.json artifacts/progress-commit.json + mv artifacts/GGVE78_previous/report.json artifacts/previous.json - name: Download OK bot id: download-ok diff --git a/tools/download_tool.py b/tools/download_tool.py index 7adbf0d..c447916 100644 --- a/tools/download_tool.py +++ b/tools/download_tool.py @@ -82,6 +82,11 @@ def wibo_url(tag: str) -> str: return f"{repo}/releases/download/{tag}/wibo" +def ok_url(tag: str) -> str: + repo = "https://github.com/bfbbdecomp/OK" + return f"{repo}/releases/download/{tag}/OK-linux-x86_64" + + TOOLS: Dict[str, Callable[[str], str]] = { "binutils": binutils_url, "compilers": compilers_url, @@ -89,8 +94,10 @@ def wibo_url(tag: str) -> str: "objdiff-cli": objdiff_cli_url, "sjiswrap": sjiswrap_url, "wibo": wibo_url, + "ok": ok_url, } + def download(url, response, output) -> None: if url.endswith(".zip"): data = io.BytesIO(response.read()) @@ -107,6 +114,7 @@ def download(url, response, output) -> None: st = os.stat(output) os.chmod(output, st.st_mode | stat.S_IEXEC) + def main() -> None: parser = argparse.ArgumentParser() parser.add_argument("tool", help="Tool name") @@ -129,11 +137,16 @@ def main() -> None: import certifi import ssl except: - print("\"certifi\" module not found. Please install it using \"python -m pip install certifi\".") + print( + '"certifi" module not found. Please install it using "python -m pip install certifi".' + ) return - - with urllib.request.urlopen(req, context=ssl.create_default_context(cafile=certifi.where())) as response: + + with urllib.request.urlopen( + req, context=ssl.create_default_context(cafile=certifi.where()) + ) as response: download(url, response, output) + if __name__ == "__main__": main()