Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
auricom committed Sep 23, 2024
1 parent 2e8e69f commit ccd149b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 6 deletions.
19 changes: 14 additions & 5 deletions .github/scripts/prepare-matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ def get_app_metadata(subdir, meta, forRelease=False, channels=None):

# App Name
toBuild = {}
if channel.get("stable", False):
toBuild["name"] = meta["app"]
else:
toBuild["name"] = "-".join([meta["app"], channel["name"]])
toBuild["name"] = meta["app"]

toBuild["repository"] = meta["repository"]
toBuild["path"] = meta["path"]
toBuild["branch"] = channel["branch"]
toBuild["update_modules"] = channel["update_modules"]
toBuild["build_artifacts"] = meta["build_artifacts"]

# Container Tags
toBuild["tags"] = [channel,f"{channel}-mods"]
toBuild["tags"] = [channel]

# Platform Metadata
for platform in channel["platforms"]:
Expand All @@ -59,6 +62,9 @@ def get_app_metadata(subdir, meta, forRelease=False, channels=None):

platformToBuild = {}
platformToBuild["name"] = toBuild["name"]
platformToBuild["repository"] = toBuild["repository"]
platformToBuild["path"] = toBuild["path"]
platformToBuild["branch"] = toBuild["branch"]
platformToBuild["platform"] = platform
platformToBuild["target_os"] = target_os
platformToBuild["target_arch"] = target_arch
Expand All @@ -78,6 +84,9 @@ def get_app_metadata(subdir, meta, forRelease=False, channels=None):

platformToBuild["tests_enabled"] = channel["tests"]["enabled"] and platform in TESTABLE_PLATFORMS

platformToBuild["build_artifacts"] = meta["build_artifacts"]
platformToBuild["update_modules"] = channel["update_modules"]

appsToBuild["appsPlatforms"].append(platformToBuild)
appsToBuild["apps"].append(toBuild)
return appsToBuild
Expand Down
11 changes: 10 additions & 1 deletion apps/cosmos-sdk/metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
---
app: cosmos-sdk
repository: github.com/cosmos/cosmos-sdk
path: simapp
build_artifacts: true
channels:
- name: main
platforms: ["linux/amd64","linux/arm64"]
branch: main
update_modules: true
tests:
enabled: true
type: web
- name: v0.50.x
branch: refs/heads/release/v0.50.x
platforms: ["linux/amd64","linux/arm64"]
update_modules: true
tests:
enabled: true
type: web
- name: v0.52.x
branch: refs/heads/release/v0.52.x
platforms: ["linux/amd64","linux/arm64"]
update_modules: false
tests:
enabled: true
type: web
type: web
13 changes: 13 additions & 0 deletions apps/ibc-go/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
app: ibc-go
repository: github.com/cosmos/ibc-go
path: simapp
build_artifacts: true
channels:
- name: main
platforms: ["linux/amd64","linux/arm64"]
branch: main
update_modules: true
tests:
enabled: true
type: web

0 comments on commit ccd149b

Please sign in to comment.