Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
19 changes: 16 additions & 3 deletions tools/download_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,22 @@ 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,
"dtk": dtk_url,
"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())
Expand All @@ -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")
Expand All @@ -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()
Loading