Skip to content

Build and workflow updates and fixes #1904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 2 additions & 2 deletions .github/actions/getNewNodeVersion/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.10'
- name: Get Versions
id: versions
shell: bash
Expand All @@ -35,4 +35,4 @@ runs:
echo "nodeVersion=$nodeVersion" >> $GITHUB_OUTPUT
echo "::group::DEBUG"
echo "nodeVersion is set to $nodeVersion"
echo "::endgroup::"
echo "::endgroup::"
7 changes: 6 additions & 1 deletion .github/workflows/PR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ on:

branches:
- main
- ubuntu-22.04

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
workflow-setup:
name: Initialize Workflow
Expand Down Expand Up @@ -82,4 +87,4 @@ jobs:
needs: [workflow-setup, indy_node_tests]
if: ${{ needs.workflow-setup.outputs.testsNeeded == 'false' || success() }}
steps:
- run: 'echo "Just a status Check (Always true, when executed) for branch protection rules(blocks merging while test are running and if tests fail)." '
- run: 'echo "Just a status Check (Always true, when executed) for branch protection rules(blocks merging while test are running and if tests fail)." '
5 changes: 5 additions & 0 deletions .github/workflows/Push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ on:
branches:
- main
- test-automation-integration
- ubuntu-22.04
paths:
- '**.py'
- '.github/**'
- 'build-scripts/**'
- 'bump_version.sh'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
workflow-setup:
name: Initialize Workflow
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reuseable_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
indy_node_tests:
name: Sliced Module Tests
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
# Fix for scacap/action-surefire-report out of memory error:
# - https://github.com/ScaCap/action-surefire-report/issues/17
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ jobs:
bump_version:
name: Bump Version Number
needs: taginfos
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.10'

- name: Install deps for version change
run: |
Expand Down
7 changes: 6 additions & 1 deletion build-scripts/ubuntu-2204/build-indy_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ cd "${TMP_DIR}/build-scripts/ubuntu-2204"
./prepare-package.sh "${TMP_DIR}" indy_node "${VERSION}" debian-packages

echo "Fetching the indy-plenum version from setup.py and converting it to deb format ..."
plenumDebVersion=$(grep -oP "indy-plenum==\d+.\d+.\d+((-|.)?(rc|dev)\d+)?" ${TMP_DIR}/setup.py | grep -oP "\d+.\d+.\d+((-|.)?(rc|dev)\d+)?" | sed 's/\./\~/3')
# Converts Versions defined in the following forms to their equivalent dep version format:
# 1.14.0.rc0 ==> 1.14.0~rc0
# 1.14.0-rc0 ==> 1.14.0~rc0
# 1.14.0.dev0654678970 ==> 1.14.0~dev0654678970
# 1.14.0-dev0654678970 ==> 1.14.0~dev0654678970
plenumDebVersion=$(grep -oP "indy-plenum==\d+.\d+.\d+((-|.)?(rc|dev)\d+)?" ${TMP_DIR}/setup.py | grep -oP "\d+.\d+.\d+((-|.)?(rc|dev)\d+)?" | sed 's/\./\~/3' | sed 's/\-/\~/1')
echo "plenumDebVersion: ${plenumDebVersion}"

sed -i "s/{package_name}/${PACKAGE_NAME}/" "prerm"
Expand Down
2 changes: 1 addition & 1 deletion indy_node/__version__.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[1, 13, 2, "", ""]
[1, 14, 0, "", ""]
Loading