Skip to content

Commit

Permalink
Extract profiles code to new crate aries-vcx-core (#798)
Browse files Browse the repository at this point in the history
* Extract ledger/wallet/credential profiles code to aries-vcx-core crate

Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Co-authored-by: Patrik Stas <patrik.stas@absa.africa>
  • Loading branch information
mirgee and Patrik-Stas authored Apr 13, 2023
1 parent f477a95 commit e7375a1
Show file tree
Hide file tree
Showing 146 changed files with 2,700 additions and 1,538 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-napi/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
node-version:
default: 18
rust-version:
default: 1.64.0
default: 1.65.0

runs:
using: "composite"
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-testing-nodejs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
npm install -g npm@8.19.3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.64.0
toolchain: 1.65.0
- uses: Swatinem/rust-cache@v2
- name: "Install dependencies"
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/setup-testing-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ runs:
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.64.0
toolchain: 1.65.0
- uses: Swatinem/rust-cache@v2
- name: "Install dependencies"
shell: bash
Expand All @@ -26,4 +26,4 @@ runs:
docker run --rm -d --name mysql --network host -e MYSQL_ROOT_PASSWORD=mysecretpassword mysql:5.7.35
docker run --rm -d --name indypool --network host ${{ env.DOCKER_IMAGE_POOL }}
sleep 5
docker-compose -f ./ci/agency/docker-compose.yml up -d
docker-compose -f ./ci/agency/docker-compose.yml up -d
32 changes: 23 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
DOCKER_REPO_LOCAL_LIBVCX: libvcx
DOCKER_REPO_LOCAL_ANDROID: android-test

RUST_TOOLCHAIN_VERSON: 1.64.0
RUST_TOOLCHAIN_VERSON: 1.65.0
NODE_VERSION: 18.x

jobs:
Expand All @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.64.0
toolchain: 1.65.0
components: rustfmt, clippy
- name: "Verify code formatting"
run: |
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.64.0
toolchain: 1.65.0
- name: "Construct CI run-info"
id: run-info
uses: ./.github/actions/construct-run-info
Expand All @@ -72,14 +72,24 @@ jobs:
HASH_DOCKERFILE_ALPINE_CORE=${{ hashFiles('ci/alpine_core.dockerfile')}}
HASH_DOCKERFILE_LIBVCX=${{ hashFiles('ci/libvcx.dockerfile') }}
HASH_SRC_LIBVDRTOOLS=${{ hashFiles('libvdrtools') }}
HASH_SRC_LIBVCX=${{ hashFiles('libvcx') }}
HASH_SRC_ARIESVCX=${{ hashFiles('aries_vcx') }}
HASH_SRC_ARIESVCX_CORE=${{ hashFiles('aries_vcx_core') }}
HASH_SRC_AGENCYCLIENT=${{ hashFiles('agency_client') }}
HASH_SRC_DIDDOC=${{ hashFiles('diddoc') }}
HASH_SRC_MESSAGES=${{ hashFiles('messages') }}
HASH_SRC_MESSAGES_2=${{ hashFiles('messages2') }}
HASH_SRC_WRAPPER_JAVA=${{ hashFiles('wrappers/java') }}
HASH_DOCKER_LIBVCX=${HASH_DOCKERFILE_LIBVCX:0:11}-${HASH_SRC_LIBVCX:0:11}-${HASH_SRC_ARIESVCX:0:11}-${HASH_SRC_AGENCYCLIENT:0:11}-${HASH_SRC_MESSAGES:0:11}
HASH_DOCKER_ANDROID=${HASH_DOCKER_LIBVCX}-${HASH_SRC_ARIESVCX:0:11}-${HASH_SRC_WRAPPER_JAVA:0:15}
SEED_HASH_ARIESVCX=${HASH_SRC_LIBVDRTOOLS:0:11}-${HASH_SRC_ARIESVCX_CORE:0:11}-${HASH_SRC_ARIESVCX:0:11}-${HASH_SRC_AGENCYCLIENT:0:11}-${HASH_SRC_DIDDOC:0:11}-${HASH_SRC_MESSAGES:0:11}-${HASH_SRC_MESSAGES_2:0:11}
HASH_ARIESVCX=$(echo -n "$SEED_HASH_ARIESVCX" | sha256sum | awk '{print $1}')
SEED_HASH_DOCKER_LIBVCX=${HASH_ARIESVCX:0:11}-${HASH_DOCKERFILE_LIBVCX:0:11}-${HASH_SRC_LIBVCX:0:11}
HASH_DOCKER_LIBVCX=$(echo -n "$SEED_HASH_DOCKER_LIBVCX" | sha256sum | awk '{print $1}')
SEED_HASH_DOCKER_ANDROID=${HASH_ARIESVCX:0:11}-${HASH_DOCKER_LIBVCX:0:11}-${HASH_SRC_WRAPPER_JAVA:0:11}
HASH_DOCKER_ANDROID=$(echo -n "$SEED_HASH_DOCKER_ANDROID" | sha256sum | awk '{print $1}')
echo "DOCKER_IMG_CACHED_ALPINE_CORE=$DOCKER_REPO_LOCAL_ALPINE_CORE:$HASH_DOCKERFILE_ALPINE_CORE" >> $GITHUB_OUTPUT
echo "DOCKER_IMG_CACHED_LIBVCX=$DOCKER_REPO_LOCAL_LIBVCX:$HASH_DOCKER_LIBVCX" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -111,7 +121,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.64.0
toolchain: 1.65.0
components: rustfmt, clippy
- name: "Install dependencies"
shell: bash
Expand All @@ -129,7 +139,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.64.0
toolchain: 1.65.0
components: rustfmt, clippy
- name: "Install dependencies"
shell: bash
Expand Down Expand Up @@ -596,8 +606,10 @@ jobs:
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.64.0
toolchain: 1.65.0
- uses: Swatinem/rust-cache@v2
with:
key: "11"
- name: "Install dependencies"
shell: bash
run: |
Expand All @@ -620,8 +632,10 @@ jobs:
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.64.0
toolchain: 1.65.0
- uses: Swatinem/rust-cache@v2
with:
key: "11"
- name: "Install dependencies"
shell: bash
run: |
Expand Down
Loading

0 comments on commit e7375a1

Please sign in to comment.