Build contributed recipes in mathbunnyru fork as well

This commit is contained in:
Ayaz Salikhov
2024-08-31 22:32:23 +01:00
parent f78d97a3a8
commit e136ad7574
2 changed files with 9 additions and 2 deletions

View File

@@ -2,17 +2,22 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import json
import os
from pathlib import Path
from typing import Any
THIS_DIR = Path(__file__).parent.resolve()
REPOSITORY_OWNER = os.environ["REPOSITORY_OWNER"]
def generate_matrix() -> dict[str, Any]:
dockerfiles = sorted(file.name for file in THIS_DIR.glob("*.dockerfile"))
runs_on = ["ubuntu-latest"]
if REPOSITORY_OWNER == "jupyter":
runs_on.append("ARM64")
return {
"dockerfile": dockerfiles,
"runs-on": ["ubuntu-latest", "ARM64"],
"runs-on": runs_on,
"exclude": [{"dockerfile": "oracledb.dockerfile", "runs-on": "ARM64"}],
}