Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
auricom committed Sep 24, 2024
1 parent f7e1380 commit 234085c
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .github/scripts/prepare-matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def get_app_metadata(subdir, meta, forRelease=False, channels=None):

platformToBuild["build_command"] = toBuild["build_command"]
platformToBuild["publish_artifacts"] = meta["publish_artifacts"]
platformToBuild["update_modules"] = channel["update_modules"]
platformToBuild["update_modules_enabled"] = channel["update_modules"]["enabled"]
platformToBuild["update_modules_branch"] = channel["update_modules"]["cosmossdk_branch"]

appsToBuild["appsPlatforms"].append(platformToBuild)
appsToBuild["apps"].append(toBuild)
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/build-applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ jobs:
check-latest: true

- name: Update go modules
if: ${{ matrix.app.update_modules }}
if: ${{ matrix.app.update_modules_enabled }}
run: |
set -x
cd ${{ matrix.app.repository }}/${{ matrix.app.path }}
COSMOSSDK_BRANCH=${{ matrix.app.branch }} ${{ github.workspace }}/nightly-stack/.github/scripts/update-go-modules.sh
COSMOSSDK_BRANCH=${{ matrix.app.update_modules_branch }} ${{ github.workspace }}/nightly-stack/.github/scripts/update-go-modules.sh
- name: show output of modified go.sum and go.mod
run: |
Expand Down Expand Up @@ -142,7 +142,8 @@ jobs:
START_TIME=$(date +%s)
cd ${{ matrix.app.repository }}/${{ matrix.app.path }}
${{ matrix.app.tests_command }} > ./output.log 2>1 &
${{ matrix.app.tests_command }}
${{ steps.build.outputs.gobin }} start > ./output.log 2>1 &
APP_PID=$!
Expand Down
6 changes: 4 additions & 2 deletions apps/cosmos-sdk-comet/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ channels:
- name: main
platforms: ["linux/amd64","linux/arm64"]
branch: main
update_modules: false
update_modules:
enabled: true
cosmossdk_branch: main
tests:
enabled: true
command: make init-simapp && simd start
command: make init-simapp
14 changes: 10 additions & 4 deletions apps/cosmos-sdk/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,27 @@ channels:
- name: main
platforms: ["linux/amd64","linux/arm64"]
branch: main
update_modules: true
update_modules:
enabled: true
cosmossdk_branch: main
tests:
enabled: true
command: make init-simapp && simd start
command: make init-simapp
- name: v0.50.x
branch: refs/heads/release/v0.50.x
platforms: ["linux/amd64","linux/arm64"]
update_modules: true
update_modules:
enabled: true
cosmossdk_branch: main
tests:
enabled: true
command: make init-simapp && simd start
- name: v0.52.x
branch: refs/heads/release/v0.52.x
platforms: ["linux/amd64","linux/arm64"]
update_modules: false
update_modules:
enabled: false
cosmossdk_branch: main
tests:
enabled: true
command: make init-simapp && simd start
6 changes: 4 additions & 2 deletions apps/ibc-go/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ channels:
- name: main
platforms: ["linux/amd64","linux/arm64"]
branch: main
update_modules: true
update_modules:
enabled: true
cosmossdk_branch: main
tests:
enabled: true
command: make init-simapp && simd start
command: make init-simapp
6 changes: 4 additions & 2 deletions apps/ignite-example/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ channels:
- name: master
platforms: ["linux/amd64","linux/arm64"]
branch: master
update_modules: true
update_modules:
enabled: true
cosmossdk_branch: main
tests:
enabled: true
command: make init-simapp && simd start
command: make init-simapp
7 changes: 5 additions & 2 deletions metadata.rules.cue
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
name: #ChannelName
platforms: [...#Platforms]
branch: string
update_modules?: bool
update_modules: {
enabled: bool
cosmossdk_branch?: string
}
tests: {
enabled: bool
command: string
command?: string
}
}

Expand Down

0 comments on commit 234085c

Please sign in to comment.