From 4635cb1359bc0033ddcd8f098cd9bf600dbd58fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=A3=E5=A4=A7?= Date: Mon, 20 Nov 2023 13:44:50 +0800 Subject: [PATCH] [fix][*][*] use workflow to build and test --- .github/workflows/install_acbsdk.sh | 31 +++++++++++++++++++++++++++++ .github/workflows/maven.yml | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/install_acbsdk.sh diff --git a/.github/workflows/install_acbsdk.sh b/.github/workflows/install_acbsdk.sh new file mode 100644 index 0000000..f0c25a3 --- /dev/null +++ b/.github/workflows/install_acbsdk.sh @@ -0,0 +1,31 @@ +# +# Copyright 2023 Ant Group +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +#!/bin/bash + +CURR_DIR="$(cd `dirname $0`; pwd)" + +echo "install ACB SDK ..." + +git clone -b feat/bcdns_support git@github.com:AntChainOpenLabs/AntChainBridgePluginSDK.git +cd AntChainBridgePluginSDK/antchain-bridge-commons +mvn install -Dmaven.test.skip=true +cd - +cd AntChainBridgePluginSDK/antchain-bridge-spi +mvn install -Dmaven.test.skip=true +cd - + +echo "install ACB SDK finished" \ No newline at end of file diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index adfc0fa..0693894 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,6 +27,8 @@ jobs: java-version: '8' distribution: 'temurin' cache: maven + - name: Install deps + run: bash .github/workflows/install_acbsdk.sh - name: Build with Maven run: mvn -B package --file pom.xml