-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Github action for building and deploying libwallet (#1948)
Merge pull request #1948 Add Github action for building and deploying libwallet
- Loading branch information
Showing
2 changed files
with
34 additions
and
2 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
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,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' | ||
|