Skip to content

Commit

Permalink
Add Github action for building and deploying libwallet (#1948)
Browse files Browse the repository at this point in the history
Merge pull request #1948

Add Github action for building and deploying libwallet
  • Loading branch information
CjS77 committed Jun 4, 2020
2 parents 2247e18 + b0d6e31 commit 7b7024f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/clippy-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
override: true
- name: Install dependencies
run: |
sudo apt update &&
sudo apt install libncurses5 libncurses5-dev openssl libssl-dev pkg-config libsqlite3-0 libsqlite3-dev clang git cmake libc++-dev libc++abi-dev
sudo apt update &&
sudo apt install libncurses5 libncurses5-dev openssl libssl-dev pkg-config libsqlite3-0 libsqlite3-dev clang git cmake libc++-dev libc++abi-dev
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/libwallet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Build a new set of libraries when a new tag containing 'libwallet' is pushed
name: Build libwallet
on:
push:
tags:
- "libwallet-*"
jobs:
build_libs:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the code
- uses: actions/checkout@v2
# Step 2: Build and package the libraries
- name: Build libwallet
id: build-libwallet
uses: tari-project/[email protected]
with:
platforms: "x86_64-linux-android;aarch64-linux-android;i686-linux-android;armv7-linux-androideabi"
level: "24"
# Step 3: Copy tarballs to S3
- name: Sync to S3
uses: jakejarvis/[email protected]
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1' # optional: defaults to us-east-1
SOURCE_DIR: '$GITHUB_WORKSPACE/libwallet'
DEST_DIR: 'libwallet'

0 comments on commit 7b7024f

Please sign in to comment.