-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
283 changed files
with
8,436 additions
and
6,599 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
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,7 +1,7 @@ | ||
--- | ||
name: Build docker images - workflow_call/on-demand | ||
|
||
on: | ||
'on': | ||
workflow_call: | ||
secrets: | ||
DOCKER_PROVIDER: | ||
|
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,99 @@ | ||
--- | ||
name: Build libwallets | ||
|
||
'on': | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
branches: | ||
- "build-libwallet-*" | ||
schedule: | ||
- cron: "05 00 * * *" | ||
workflow_dispatch: | ||
inputs: | ||
build_android: | ||
type: boolean | ||
default: true | ||
build_ios: | ||
type: boolean | ||
default: true | ||
toolchain: | ||
type: string | ||
description: 'Rust toolchain' | ||
|
||
env: | ||
toolchain_default: nightly-2022-05-01 | ||
|
||
jobs: | ||
builds_envs_setup: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
toolchain: ${{ steps.envs_setup.outputs.toolchain }} | ||
build_android: ${{ steps.envs_setup.outputs.build_android }} | ||
build_ios: ${{ steps.envs_setup.outputs.build_ios }} | ||
|
||
steps: | ||
- name: envs setup | ||
id: envs_setup | ||
run: | | ||
TOOLCHAIN=${{ github.event.inputs.toolchain }} | ||
echo "::set-output name=toolchain::${TOOLCHAIN:-${{ env.toolchain_default }}}" | ||
BUILD_ANDROID=${{ github.event.inputs.build_android }} | ||
echo "::set-output name=build_android::${BUILD_ANDROID:-true}" | ||
BUILD_IOS=${{ github.event.inputs.build_ios }} | ||
echo "::set-output name=build_ios::${BUILD_IOS:-true}" | ||
builds_run: | ||
needs: builds_envs_setup | ||
uses: ./.github/workflows/build_libwallets_workflow.yml | ||
with: | ||
toolchain: ${{ needs.builds_envs_setup.outputs.toolchain }} | ||
build_android: ${{ needs.builds_envs_setup.outputs.build_android }} | ||
build_ios: ${{ needs.builds_envs_setup.outputs.build_ios }} | ||
|
||
libwallet_uploads: | ||
needs: builds_run | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download binaries | ||
uses: actions/download-artifact@v3 | ||
with: | ||
path: libwallets | ||
|
||
- name: Verify checksums | ||
shell: bash | ||
working-directory: libwallets | ||
run: | | ||
ls -alhtR | ||
find . -name "*.sha256sums" -print | xargs cat >> libwallets.txt.sha256sums-verify | ||
cat libwallets.txt.sha256sums-verify | ||
sha256sum -c libwallets.txt.sha256sums-verify | ||
- name: Sync to S3 on tag | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
continue-on-error: true # Don't break if s3 upload fails | ||
uses: jakejarvis/s3-sync-action@v0.5.1 | ||
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/libwallets" | ||
DEST_DIR: "libwallet" | ||
|
||
create-release: | ||
runs-on: ubuntu-latest | ||
needs: libwallet_uploads | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
steps: | ||
- name: Download binaries | ||
uses: actions/download-artifact@v2 | ||
- name: Create release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "libwallet*/**/*" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
prerelease: true | ||
draft: true |
Oops, something went wrong.