forked from hyperledger-indy/indy-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request hyperledger-indy#2354 from mirgee/ga-workflow
Add github actions workflow
- Loading branch information
Showing
24 changed files
with
1,604 additions
and
986 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: 'Publish android image' | ||
|
||
inputs: | ||
abis: | ||
description: 'A space separated list of ABIs to create an artifact for' | ||
default: 'armv7 arm64 x86 x86_64' | ||
docker-img-name: | ||
description: 'Name of the android image' | ||
required: true | ||
full-version-name: | ||
description: 'Name of the resulting artifact' | ||
required: true | ||
|
||
env: | ||
DOCKER_BUILDKIT: 1 | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Build, run android wrapper tests, and publish artifacts | ||
run: | | ||
docker run --name publish-android-wrapper -v $PWD:/root/indy-sdk \ | ||
-e ABIS="${{ inputs.abis }}" \ | ||
-e FULL_VERSION_NAME="${{ inputs.full-version-name }}" \ | ||
${{ inputs.docker-img-name }} \ | ||
bash -c '(cd $HOME/indy-sdk/libindy/ci/ && ./android.prepare.sh $ABIS && cd $HOME/indy-sdk/libindy && ./ga-android.build.sh $ABIS)' | ||
docker_id=$(docker ps -a | grep android | grep Exited | tail -n 1 | cut -d ' ' -f 1) | ||
docker_image_id=$(docker images | grep android | perl -pe 's/\s+/ /g' | cut -d ' ' -f 3) | ||
mkdir -p /tmp/artifacts | ||
docker cp ${docker_id}:/tmp/artifacts/libindy /tmp/artifacts | ||
docker rm ${docker_id} > /dev/null | ||
docker rmi ${docker_image_id} > /dev/null | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: 'Publish android image' | ||
|
||
inputs: | ||
abi: | ||
description: 'ABI to run tests for' | ||
default: 'armv7 arm64 x86 x86_64' | ||
pool_ip: | ||
description: 'IP the indy pool run on' | ||
default: "127.0.0.1" | ||
required: true | ||
android-docker-img-name: | ||
description: 'Name of the android image' | ||
required: true | ||
pool-docker-img-name: | ||
description: 'Name of the pool image' | ||
required: true | ||
|
||
env: | ||
DOCKER_BUILDKIT: 1 | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Run wrapper tests | ||
run: | | ||
sudo rm -rf "/usr/local/share/boost" "$AGENT_TOOLSDIRECTORY" "/usr/local/lib/android" "/usr/share/dotnet" | ||
# sleep 15 && docker rmi ${{ inputs.pool-docker-img-name }} {{ inputs.android-docker-img-name }} & | ||
docker run --rm -d --name indypool --network host ${{ inputs.pool-docker-img-name }} | ||
docker run --rm -i --name android --network host -v $PWD:/root/indy-sdk \ | ||
-e ABI="${{ inputs.abi }}" \ | ||
-e TEST_POOL_IP="${{ inputs.pool_ip }}" \ | ||
${{ inputs.android-docker-img-name }} \ | ||
bash -c '(cd $HOME/indy-sdk/libindy/ci/ && ./android.prepare.sh $ABI && cd $HOME/indy-sdk/libindy && ./android.test.sh $ABI)' | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# SPDX-License-Identifier: CC-BY-4.0 | ||
# | ||
|
||
repository: | ||
name: indy-sdk | ||
description: indy-sdk | ||
homepage: https://wiki.hyperledger.org/display/indy | ||
default_branch: master | ||
has_downloads: false | ||
has_issues: true | ||
has_projects: false | ||
has_wiki: false | ||
archived: false | ||
private: false | ||
allow_squash_merge: true | ||
allow_merge_commit: false | ||
allow_rebase_merge: true |
Oops, something went wrong.