Skip to content

Commit

Permalink
refactor: remove libvcx_core and vcx_napi_rs crates
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Prazak <ondrej.prazak@absa.africa>
  • Loading branch information
Ondrej Prazak committed Mar 14, 2024
1 parent c2c0dde commit 9642209
Show file tree
Hide file tree
Showing 143 changed files with 1 addition and 19,585 deletions.
70 changes: 0 additions & 70 deletions .github/actions/build-napi/action.yml

This file was deleted.

138 changes: 0 additions & 138 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -393,25 +393,6 @@ jobs:
with:
name: "docker-services-${{ github.job }}"

test-integration-libvcx:
needs: workflow-setup
if: ${{ needs.workflow-setup.outputs.SKIP_CI != 'true' }}
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 }}
- name: "Install just"
run: sudo snap install --edge --classic just
- name: "Run libvcx_core integration tests"
run: just test-integration-libvcx ${{ matrix.wallet }}

test-integration-did-crate:
needs: workflow-setup
if: ${{ needs.workflow-setup.outputs.SKIP_CI != 'true' }}
Expand Down Expand Up @@ -443,8 +424,6 @@ jobs:
with:
rust-toolchain-version: ${{ env.RUST_TOOLCHAIN_VERSION }}
node-version: ${{ matrix.node-version }}
- name: "Run wrapper integration tests"
run: (cd aries/wrappers/node && npm run test:integration)
- name: "Install vcxagent-core dependencies"
run: (cd aries/agents/node/vcxagent-core && npm install)
- name: "Run demo"
Expand All @@ -457,35 +436,10 @@ jobs:
##########################################################################################
############################ NPMJS PUBLISHING #######################################

publish-node-wrapper:
runs-on: ubuntu-20.04
needs:
- workflow-setup
- publish-napi
if: ${{ needs.workflow-setup.outputs.SKIP_CI != 'true' }}
env:
PUBLISH_VERSION: ${{needs.workflow-setup.outputs.PUBLISH_VERSION}}
steps:
- name: "Git checkout"
uses: actions/checkout@v3
- name: "Use Node.js 18"
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: "Publish package"
run: |
if [[ "$PUBLISH_VERSION" ]]
then
NPMJS_TOKEN=${{ secrets.NPMJS_TOKEN }} PUBLISH_VERSION=${{ env.PUBLISH_VERSION }} ./aries/wrappers/node/publish.sh
else
echo "New version was not defined, skipping release."
fi
publish-agent-core:
runs-on: ubuntu-20.04
needs:
- workflow-setup
- publish-node-wrapper
if: ${{ needs.workflow-setup.outputs.SKIP_CI != 'true' }}
env:
NPMJS_TOKEN: ${{ secrets.NPMJS_TOKEN }}
Expand All @@ -506,97 +460,6 @@ jobs:
echo "New version was not defined, skipping release."
fi
build-napi:
needs:
- workflow-setup
if: ${{ needs.workflow-setup.outputs.SKIP_CI != 'true' }}
strategy:
fail-fast: false
matrix:
settings:
- host: ubuntu-20.04
target: x86_64-unknown-linux-gnu
build: |-
set -e
sudo apt-get update -y
sudo apt-get install -y libssl-dev libzmq3-dev
npm run build:napi
strip *.node
- host: ubuntu-20.04
target: x86_64-unknown-linux-musl
docker: alpine
build: |-
set -e
env
unset CC
unset CXX
cd aries/wrappers/vcx-napi-rs
npm run build:napi
strip *.node
- host: macos-latest
target: x86_64-apple-darwin
build: |
brew install openssl zmq pkg-config
npm run build:napi
strip -x *.node
- host: macos-latest
target: aarch64-apple-darwin
skip: ${{ needs.workflow-setup.outputs.SKIP_NAPI_M1 }}
build: |
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
export OPENSSL_DIR=/opt/local
export OPENSSL_INCLUDE_DIR=/opt/local/include/
export OPENSSL_LIB_DIR=/opt/local/lib/
export SODIUM_LIB_DIR=/opt/local/lib/
export SODIUM_INCLUDE_DIR=/opt/local/include
export LIBZMQ_LIB_DIR=/opt/local/lib/
export LIBZMQ_INCLUDE_DIR=/opt/local/include
export PKG_CONFIG_ALLOW_CROSS=1
export PKG_CONFIG_SYSROOT_DIR=/
export RUST_BACKTRACE=1
npm run build:napi -- --target aarch64-apple-darwin
strip -x *.node
name: ${{ matrix.settings.target }}
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/build-napi
if: ${{ matrix.settings.skip != 'true' }}
with:
docker: ${{ matrix.settings.docker }}
target: ${{ matrix.settings.target }}
build: ${{ matrix.settings.build }}
node-version: ${{ env.NODE_VERSION }}
rust-version: ${{ env.RUST_TOOLCHAIN_VERSION }}

publish-napi:
runs-on: ubuntu-20.04
needs:
- workflow-setup
- test-unit-workspace
- test-integration-libvcx
- test-integration-aries-vcx
- test-integration-aries-vcx-mysql
# - test-node-wrapper
- test-integration-node-wrapper
- workflow-setup
- build-napi
if: ${{ needs.workflow-setup.outputs.SKIP_CI != 'true' && needs.workflow-setup.outputs.IS_FORK == 'false' }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/publish-napi
with:
publish-version: ${{ needs.workflow-setup.outputs.PUBLISH_VERSION }}
npmjs-token: ${{ secrets.NPMJS_TOKEN }}
node-version: ${{ env.NODE_VERSION }}

##########################################################################################
############################## RELEASE #########################################

Expand All @@ -605,7 +468,6 @@ jobs:
needs:
- workflow-setup
- test-unit-workspace
- test-integration-libvcx
- test-integration-aries-vcx
- test-integration-aries-vcx-mysql
# - test-node-wrapper
Expand Down
Loading

0 comments on commit 9642209

Please sign in to comment.