-
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.
fix: dockerfiles for base node and wallet (#3263)
- Loading branch information
Byron Hambly
authored
Aug 30, 2021
1 parent
011f10e
commit 38579a1
Showing
365 changed files
with
21,638 additions
and
10,168 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
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 |
---|---|---|
@@ -1,18 +1,9 @@ | ||
<!--- Provide a general summary of your changes in the Title above --> | ||
Description | ||
--- | ||
|
||
## Description | ||
<!--- Describe your changes in detail --> | ||
Motivation and Context | ||
--- | ||
|
||
## Motivation and Context | ||
<!--- Why is this change required? What problem does it solve? --> | ||
<!--- If it fixes an open issue, please link to the issue here. --> | ||
How Has This Been Tested? | ||
--- | ||
|
||
## How Has This Been Tested? | ||
<!--- Please describe in detail how you tested your changes. --> | ||
<!--- Include details of your testing environment, and the tests you ran to --> | ||
<!--- see how your change affects other areas of the code, etc. --> | ||
|
||
## Checklist: | ||
<!--- Go over all the following points, and put an `x` in all the boxes that apply. --> | ||
* [ ] I'm merging against the `development` branch. | ||
* [ ] I have squashed my commits into a single commit. |
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 |
---|---|---|
|
@@ -2,39 +2,83 @@ | |
name: Build libwallet | ||
on: | ||
push: | ||
# branches: | ||
# - development | ||
# - libwallet | ||
branches: | ||
- "libwallet-*" | ||
# - development | ||
tags: | ||
- "libwallet-*" | ||
jobs: | ||
build-and-upload: | ||
android: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout the code | ||
- uses: actions/checkout@v2 | ||
# Build and package the libraries | ||
- name: Build libwallet | ||
id: build-libwallet | ||
uses: tari-project/[email protected].1 | ||
uses: tari-project/[email protected].2 | ||
with: | ||
platforms: "x86_64-linux-android;aarch64-linux-android;armv7-linux-androideabi" | ||
level: "24" | ||
# Upload artifacts to Github | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: libwallet | ||
name: libwallet-android | ||
path: ${{ github.workspace }}/libwallet/ | ||
# Copy tarballs to S3 | ||
- name: Sync to S3 | ||
continue-on-error: true # Don't break if s3 upload fails | ||
uses: jakejarvis/[email protected] | ||
with: | ||
args: --acl public-read --follow-symlinks | ||
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' | ||
AWS_REGION: "us-east-1" # optional: defaults to us-east-1 | ||
SOURCE_DIR: "$GITHUB_WORKSPACE/libwallet" | ||
DEST_DIR: "libwallet" | ||
ios: | ||
runs-on: macos-10.15 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly-2021-05-09 | ||
target: aarch64-apple-ios | ||
components: rustfmt | ||
override: true | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly-2021-05-09 | ||
target: x86_64-apple-ios | ||
components: rustfmt | ||
override: true | ||
- name: Install macOS dependencies | ||
run: brew install cmake zip | ||
- name: Build | ||
run: | | ||
mkdir -p MobileWallet/TariLib/ | ||
cd base_layer/wallet_ffi | ||
mv ios.config build.config | ||
./mobile_build.sh | ||
ls -alht $GITHUB_WORKSPACE/MobileWallet/TariLib/ | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: libwallet-ios | ||
path: ${{ github.workspace }}/MobileWallet/TariLib/ | ||
|
||
# "Error: Container action is only supported on Linux" | ||
# - name: Sync to S3 | ||
# uses: jakejarvis/[email protected] | ||
# with: | ||
# args: --acl public-read --follow-symlinks | ||
# 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/MobileWallet/TariLib/" | ||
# DEST_DIR: "libwallet-ios" |
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,20 @@ | ||
name: PR | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
check-title: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: install | ||
run: | | ||
npm install -g @commitlint/cli @commitlint/config-conventional | ||
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js | ||
- name: lint | ||
run: | | ||
echo ${{github.event.pull_request.title}} | commitlint |
Oops, something went wrong.