Skip to content
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

feat: implement new wallet trait for askar #1085

Merged
merged 5 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
9 changes: 7 additions & 2 deletions .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.70.0
required: true

runs:
using: "composite"
Expand Down Expand Up @@ -45,11 +45,16 @@ runs:
run: npm install
working-directory: ${{ github.workspace }}/aries/wrappers/vcx-napi-rs
shell: bash
- name: Build docker image
if: ${{ inputs.docker }}
shell: bash
run: |
docker build -f aries/wrappers/vcx-napi-rs/${{ inputs.docker }}.Dockerfile -t ghcr.io/hyperledger/aries-vcx/napi-rs-${{ inputs.docker }}:latest .
- name: Build in docker
uses: addnab/docker-run-action@v3
if: ${{ inputs.docker }}
with:
image: ${{ inputs.docker }}
image: ghcr.io/hyperledger/aries-vcx/napi-rs-${{ inputs.docker }}
options: -v /home/runner/.cargo/git/db:/root/.cargo/git/db -v /home/runner/.cargo/registry/cache:/root/.cargo/registry/cache -v /home/runner/.cargo/registry/index:/root/.cargo/registry/index -v ${{ github.workspace }}:/build -w /build
run: ${{ inputs.build }}
- name: Build
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/setup-codecov-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ inputs:
runs:
using: "composite"
steps:
- name: Install nightly 1.71
- name: Install nightly 1.72
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-05-08
toolchain: nightly-2023-08-24
override: true
- uses: Swatinem/rust-cache@v2
- name: "Install dependencies"
Expand Down
34 changes: 28 additions & 6 deletions .github/workflows/main.yml
Patrik-Stas marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
backend: ["credx,vdrtools_wallet", "vdr_proxy_ledger"]
backend: ["credx,vdrtools_wallet", "vdr_proxy_ledger,askar_wallet"]
steps:
- name: "Git checkout"
uses: actions/checkout@v3
Expand Down Expand Up @@ -272,9 +272,32 @@ jobs:
- name: "Run workspace unit tests"
run: just test-unit

test-intergation-aries-vcx-core:
needs: workflow-setup
runs-on: ubuntu-20.04
strategy:
matrix:
wallet: ["vdrtools_wallet", "askar_wallet"]
steps:
- name: "Git checkout"
uses: actions/checkout@v3
- name: "Setup rust testing environment"
uses: ./.github/actions/setup-testing-rust
with:
rust-toolchain-version: ${{ env.RUST_TOOLCHAIN_VERSION }}
default: true
skip-docker-setup: true
- name: "Install just"
run: sudo snap install --edge --classic just
- name: "Run aries-vcx-core integration tests"
run: just test-integration-aries-vcx-core ${{ matrix.wallet }}

test-integration-aries-vcx:
needs: workflow-setup
runs-on: ubuntu-20.04
strategy:
matrix:
wallet: ["vdrtools_wallet,credx", "askar_wallet,credx"]
steps:
- name: "Git checkout"
uses: actions/checkout@v3
Expand All @@ -285,7 +308,7 @@ jobs:
- name: "Install just"
run: sudo snap install --edge --classic just
- name: "Run aries-vcx integration tests"
run: just test-integration-aries-vcx
run: just test-integration-aries-vcx ${{ matrix.wallet }}

test-integration-aries-vcx-anoncreds-rs:
needs: workflow-setup
Expand Down Expand Up @@ -476,7 +499,7 @@ jobs:
strip *.node
- host: ubuntu-20.04
target: x86_64-unknown-linux-musl
docker: ghcr.io/hyperledger/aries-vcx/napi-rs-alpine
docker: alpine
build: |-
set -e
env
Expand All @@ -495,8 +518,8 @@ jobs:
target: aarch64-apple-darwin
skip: ${{ needs.workflow-setup.outputs.SKIP_NAPI_M1 }}
build: |
wget https://github.com/macports/macports-base/releases/download/v2.8.0/MacPorts-2.8.0-12-Monterey.pkg
sudo installer -pkg ./MacPorts-2.8.0-12-Monterey.pkg -target /
wget https://github.com/macports/macports-base/releases/download/v2.9.1/MacPorts-2.9.1-12-Monterey.pkg
sudo installer -pkg ./MacPorts-2.9.1-12-Monterey.pkg -target /
export PATH=/opt/local/bin:/opt/local/sbin:$PATH

sudo port install openssl +universal zmq +universal
Expand Down Expand Up @@ -527,7 +550,6 @@ jobs:
build: ${{ matrix.settings.build }}
node-version: ${{ env.NODE_VERSION }}
rust-version: ${{ env.RUST_TOOLCHAIN_VERSION }}
default: true

publish-napi:
runs-on: ubuntu-20.04
Expand Down
Loading
Loading