File tree 9 files changed +38
-17
lines changed
actions/getNewNodeVersion
build-scripts/ubuntu-2204
9 files changed +38
-17
lines changed Original file line number Diff line number Diff line change 19
19
- name : Set up Python
20
20
uses : actions/setup-python@v5
21
21
with :
22
- python-version : ' 3.8 '
22
+ python-version : ' 3.10 '
23
23
- name : Get Versions
24
24
id : versions
25
25
shell : bash
35
35
echo "nodeVersion=$nodeVersion" >> $GITHUB_OUTPUT
36
36
echo "::group::DEBUG"
37
37
echo "nodeVersion is set to $nodeVersion"
38
- echo "::endgroup::"
38
+ echo "::endgroup::"
Original file line number Diff line number Diff line change 7
7
8
8
branches :
9
9
- main
10
+ - ubuntu-22.04
10
11
11
12
workflow_dispatch :
12
13
14
+ concurrency :
15
+ group : ${{ github.workflow }}-${{ github.ref }}
16
+ cancel-in-progress : true
17
+
13
18
jobs :
14
19
workflow-setup :
15
20
name : Initialize Workflow
82
87
needs : [workflow-setup, indy_node_tests]
83
88
if : ${{ needs.workflow-setup.outputs.testsNeeded == 'false' || success() }}
84
89
steps :
85
- - run : ' echo "Just a status Check (Always true, when executed) for branch protection rules(blocks merging while test are running and if tests fail)." '
90
+ - run : ' echo "Just a status Check (Always true, when executed) for branch protection rules(blocks merging while test are running and if tests fail)." '
Original file line number Diff line number Diff line change 4
4
branches :
5
5
- main
6
6
- test-automation-integration
7
+ - ubuntu-22.04
7
8
paths :
8
9
- ' **.py'
9
10
- ' .github/**'
10
11
- ' build-scripts/**'
11
12
- ' bump_version.sh'
12
13
14
+ concurrency :
15
+ group : ${{ github.workflow }}-${{ github.ref }}
16
+ cancel-in-progress : true
17
+
13
18
jobs :
14
19
workflow-setup :
15
20
name : Initialize Workflow
Original file line number Diff line number Diff line change @@ -31,12 +31,17 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9692C00E657DDE61 &&
31
31
# Plenum
32
32
# - https://github.com/hyperledger/indy-plenum/issues/1546
33
33
# - Needed to pick up rocksdb=5.8.8
34
- RUN echo "deb https://hyperledger.jfrog.io/artifactory/indy jammy dev" >> /etc/apt/sources.list && \
34
+ RUN echo "deb https://hyperledger.jfrog.io/artifactory/indy jammy dev rc " >> /etc/apt/sources.list && \
35
35
echo "deb http://security.ubuntu.com/ubuntu bionic-security main" >> /etc/apt/sources.list && \
36
36
echo "deb https://repo.sovrin.org/deb bionic master" >> /etc/apt/sources.list && \
37
37
echo "deb https://repo.sovrin.org/sdk/deb bionic master" >> /etc/apt/sources.list
38
38
39
- RUN apt-get update -y && apt-get install -y rubygems python3-pip && apt-get -y autoremove && rm -rf /var/lib/apt/lists/*
39
+ RUN apt-get update -y && apt-get install -y \
40
+ rubygems \
41
+ python3-pip && \
42
+ apt-get -y autoremove && \
43
+ rm -rf /var/lib/apt/lists/*
40
44
41
45
# install fpm
42
- RUN gem install --no-document rake dotenv:2.8.1 fpm:1.15.0
46
+ RUN gem install --no-document rake dotenv:2.8.1 fpm:1.15.0 && \
47
+ pip3 install Cython==0.29.36
Original file line number Diff line number Diff line change 13
13
jobs :
14
14
indy_node_tests :
15
15
name : Sliced Module Tests
16
- runs-on : ubuntu-20.04
16
+ runs-on : ubuntu-latest
17
17
# Fix for scacap/action-surefire-report out of memory error:
18
18
# - https://github.com/ScaCap/action-surefire-report/issues/17
19
19
env :
Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ jobs:
33
33
bump_version :
34
34
name : Bump Version Number
35
35
needs : taginfos
36
- runs-on : ubuntu-20.04
36
+ runs-on : ubuntu-latest
37
37
steps :
38
38
- name : Check out code
39
39
uses : actions/checkout@v4
40
40
41
41
- name : Set up Python
42
42
uses : actions/setup-python@v5
43
43
with :
44
- python-version : ' 3.8 '
44
+ python-version : ' 3.10 '
45
45
46
46
- name : Install deps for version change
47
47
run : |
Original file line number Diff line number Diff line change @@ -16,7 +16,12 @@ cd "${TMP_DIR}/build-scripts/ubuntu-2204"
16
16
./prepare-package.sh " ${TMP_DIR} " indy_node " ${VERSION} " debian-packages
17
17
18
18
echo " Fetching the indy-plenum version from setup.py and converting it to deb format ..."
19
- 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' )
19
+ # Converts Versions defined in the following forms to their equivalent dep version format:
20
+ # 1.14.0.rc0 ==> 1.14.0~rc0
21
+ # 1.14.0-rc0 ==> 1.14.0~rc0
22
+ # 1.14.0.dev0654678970 ==> 1.14.0~dev0654678970
23
+ # 1.14.0-dev0654678970 ==> 1.14.0~dev0654678970
24
+ 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' )
20
25
echo " plenumDebVersion: ${plenumDebVersion} "
21
26
22
27
sed -i " s/{package_name}/${PACKAGE_NAME} /" " prerm"
Original file line number Diff line number Diff line change @@ -25,15 +25,16 @@ bash -ex $GENERATE_MANIFEST_SCRIPT
25
25
cat $module_name /__manifest__.json
26
26
27
27
if [ " $distro_packages " = " debian-packages" ]; then
28
+ # Only used for the deb package builds, NOT for the PyPi package builds.
28
29
echo -e " \n\nPrepares indy-node debian package version"
29
30
sed -i -r " s~indy-node==([0-9\.]+[0-9])(\.)?([a-z]+)~indy-node==\1\~\3~" setup.py
30
31
31
- # Update the package names to match the names that are available on the os.
32
- echo -e " \nAdapt the dependencies for the Canonical archive"
33
- sed -i " s~timeout-decorator~python3-timeout-decorator~" setup.py
34
- sed -i " s~distro~python3-distro~" setup.py
32
+ # Update the package names to match the versions that are pre-installed on the os.
33
+ echo -e " \nAdapting the dependencies for the Canonical archive"
34
+ sed -i " s~timeout-decorator>=0.5.0 ~python3-timeout-decorator==0.5.0-1 ~" setup.py
35
+ sed -i " s~distro==1.7.0 ~python3-distro==1.7.0-1 ~" setup.py
35
36
sed -i " s~importlib-metadata=~python3-importlib-metadata=~" setup.py
36
-
37
+
37
38
echo " Preparing config files"
38
39
GENERAL_CONFIG_DIR=" \/etc\/indy"
39
40
REPO_GENERAL_CONFIG_DIR=" indy_node/general_config"
54
55
55
56
popd
56
57
57
- echo -e " \nFinished preparing $repo for publishing\n"
58
+ echo -e " \nFinished preparing $repo for publishing\n"
Original file line number Diff line number Diff line change 1
- [1 , 13 , 2 , " " , " " ]
1
+ [1 , 14 , 0 , " " , " " ]
You can’t perform that action at this time.
0 commit comments