|
17 | 17 | jobs: |
18 | 18 |
|
19 | 19 | asset-exchange-fabric: |
20 | | - if: ${{ false }} # disable for now |
| 20 | + if: ${{ false }} # disable |
21 | 21 | # The type of runner that the job will run on |
22 | 22 | runs-on: ubuntu-latest |
23 | 23 |
|
|
91 | 91 | working-directory: samples/fabric/fabric-cli |
92 | 92 |
|
93 | 93 | asset-exchange-fabric-semi-local: |
94 | | - if: ${{ false }} # disable for now |
| 94 | + # if: ${{ false }} # disable |
95 | 95 | # The type of runner that the job will run on |
96 | 96 | runs-on: ubuntu-latest |
97 | 97 |
|
@@ -135,36 +135,39 @@ jobs: |
135 | 135 |
|
136 | 136 | # FABRIC NETWORK |
137 | 137 | # Use local InteropCC as Remote with go.mod instead of go.mod.local |
138 | | - - name: Setup interopcc |
| 138 | + - name: Fetch interopcc |
139 | 139 | run: | |
140 | | - GOMODCACHE=`go env GOMODCACHE` |
141 | | - echo "GO MOD Path: ${GOMODCACHE}" |
| 140 | + TMP_PATH=$PWD/../../../tests/network-setups/fabric/shared/tmp |
| 141 | + mkdir -p $TMP_PATH |
| 142 | + OLD_GOPATH=$GOPATH |
| 143 | + export GOPATH=$TMP_PATH |
| 144 | + echo "GO Path: ${GOPATH}" |
142 | 145 | go get -d github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/contracts/interop |
143 | | - chmod +wr -R ${GOMODCACHE} |
144 | | - rm -rf ${GOMODCACHE}/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/contracts/interop*/* |
145 | | - cp -r contracts/interop/* ${GOMODCACHE}/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/contracts/interop*/ |
146 | | - ls -lh ${GOMODCACHE}/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/contracts/interop* |
| 146 | + chmod +wr -R $TMP_PATH/pkg/mod |
| 147 | + ls -lh $TMP_PATH/pkg/mod/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/contracts |
| 148 | + rm -rf $TMP_PATH/pkg/mod/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/contracts/interop*/* |
| 149 | + cp -r contracts/interop/* $TMP_PATH/pkg/mod/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/contracts/interop*/ |
| 150 | + ls -lh $TMP_PATH/pkg/mod/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/contracts/interop* |
| 151 | + export GOPATH=$OLD_GOPATH |
147 | 152 | working-directory: core/network/fabric-interop-cc |
| 153 | + |
| 154 | + - name: Setup Interopcc |
| 155 | + run: | |
| 156 | + cd interop* |
| 157 | + go mod vendor |
| 158 | + ROOT_DIR=../../../../../../../../../../../../../../.. |
| 159 | + cp -r $ROOT_DIR/common/protos-go/* vendor/github.com/hyperledger-labs/weaver-dlt-interoperability/common/protos-go/ |
| 160 | + cp -r $ROOT_DIR/core/network/fabric-interop-cc/libs/assetexchange/* vendor/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/libs/assetexchange/ |
| 161 | + cp -r $ROOT_DIR/core/network/fabric-interop-cc/libs/utils/* vendor/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/libs/utils/ |
| 162 | + cp -r $ROOT_DIR/core/network/fabric-interop-cc/libs/testutils/* vendor/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/libs/testutils/ |
| 163 | + working-directory: tests/network-setups/fabric/shared/tmp/pkg/mod/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/contracts |
148 | 164 |
|
149 | 165 | - name: Setup Simpleasset |
150 | 166 | run: | |
151 | | - GOMODCACHE=`go env GOMODCACHE` |
152 | | - echo "GO MOD Path: ${GOMODCACHE}" |
153 | | - go mod download github.com/hyperledger-labs/weaver-dlt-interoperability/common/protos-go |
154 | | - chmod +wr -R ${GOMODCACHE} |
155 | | - rm -rf ${GOMODCACHE}/github.com/hyperledger-labs/weaver-dlt-interoperability/common/protos-go*/* |
156 | | - cp -r ../../../common/protos-go/* ${GOMODCACHE}/github.com/hyperledger-labs/weaver-dlt-interoperability/common/protos-go*/ |
157 | | - ls -lh ${GOMODCACHE}/github.com/hyperledger-labs/weaver-dlt-interoperability/common/protos-go* |
158 | | - go mod download github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/interfaces/asset-mgmt |
159 | | - chmod +wr -R ${GOMODCACHE} |
160 | | - rm -rf ${GOMODCACHE}/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/interfaces/asset-mgmt*/* |
161 | | - cp -r ../../../core/network/fabric-interop-cc/interfaces/asset-mgmt/* ${GOMODCACHE}/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/interfaces/asset-mgmt*/ |
162 | | - ls -lh ${GOMODCACHE}/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/interfaces/asset-mgmt* |
163 | | - go mod download github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/libs/testutils |
164 | | - chmod +wr -R ${GOMODCACHE} |
165 | | - rm -rf ${GOMODCACHE}/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/libs/testutils*/* |
166 | | - cp -r ../../../core/network/fabric-interop-cc/libs/testutils/* ${GOMODCACHE}/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/libs/testutils*/ |
167 | | - ls -lh ${GOMODCACHE}/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/libs/testutils* |
| 167 | + go mod vendor |
| 168 | + cp -r ../../../common/protos-go/* vendor/github.com/hyperledger-labs/weaver-dlt-interoperability/common/protos-go/ |
| 169 | + cp -r ../../../core/network/fabric-interop-cc/interfaces/asset-mgmt/* vendor/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/interfaces/asset-mgmt/ |
| 170 | + cp -r ../../../core/network/fabric-interop-cc/libs/testutils/* vendor/github.com/hyperledger-labs/weaver-dlt-interoperability/core/network/fabric-interop-cc/libs/testutils/ |
168 | 171 | working-directory: samples/fabric/simpleasset |
169 | 172 |
|
170 | 173 | - name: Start Fabric Network |
|
0 commit comments