forked from rikitau/rust-bip85
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: cargokit for precompiled_binaries
- Loading branch information
1 parent
cc43903
commit d21e69a
Showing
2 changed files
with
51 additions
and
0 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,36 @@ | ||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
name: Precompile Binaries | ||
|
||
jobs: | ||
Precompile: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
- windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: dart-lang/setup-dart@v1 | ||
- name: Install GTK | ||
if: (matrix.os == 'ubuntu-latest') | ||
run: sudo apt-get update && sudo apt-get install libgtk-3-dev | ||
- name: Precompile | ||
if: (matrix.os == 'macOS-latest') || (matrix.os == 'windows-latest') | ||
run: dart run build_tool precompile-binaries -v --manifest-dir=../../rust --repository=superlistapp/super_native_extensions | ||
working-directory: super_native_extensions/cargokit/build_tool | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} | ||
PRIVATE_KEY: ${{ secrets.RELEASE_PRIVATE_KEY }} | ||
- name: Precompile (with Android) | ||
if: (matrix.os == 'ubuntu-latest') | ||
run: dart run build_tool precompile-binaries -v --manifest-dir=../../rust --repository=superlistapp/super_native_extensions --android-sdk-location=/usr/local/lib/android/sdk --android-ndk-version=24.0.8215888 --android-min-sdk-version=23 | ||
working-directory: super_native_extensions/cargokit/build_tool | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} | ||
PRIVATE_KEY: ${{ secrets.RELEASE_PRIVATE_KEY }} |
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,15 @@ | ||
cargo: | ||
debug: # Configuration of cargo execution during debug builds | ||
toolchain: stable # default | ||
release: # Configuration of cargo execution for release builds | ||
toolchain: nightly # rustup will be invoked with nightly toolchain | ||
extra_flags: # extra arguments passed to cargo build | ||
- -Z | ||
- build-std=panic_abort,std | ||
|
||
precompiled_binaries: | ||
# Uri prefix used when downloading precompiled binaries. | ||
url_prefix: https://github.com/ethicnology/rust-bip85/releases/download/precompiled_ | ||
|
||
# Public key for verifying downloaded precompiled binaries. | ||
public_key: e56a85ab8294c9f0cd8bb58a624e23b83b5682380d048e41b041b6624d949976 |