File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches : [ master ]
4
+
5
+ name : Precompile Binaries
6
+
7
+ jobs :
8
+ Precompile :
9
+ runs-on : ${{ matrix.os }}
10
+ strategy :
11
+ fail-fast : false
12
+ matrix :
13
+ os :
14
+ - ubuntu-20.04
15
+ - macOS-latest
16
+ - windows-latest
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - uses : dart-lang/setup-dart@v1
20
+
21
+ - name : Install GTK
22
+ if : (matrix.os == 'ubuntu-latest')
23
+ run : sudo apt-get update && sudo apt-get install libgtk-3-dev
24
+
25
+ - name : Set up Android SDK
26
+ if : (matrix.os == 'ubuntu-20.04')
27
+ uses : android-actions/setup-android@v2
28
+
29
+ - name : Install Specific NDK
30
+ if : (matrix.os == 'ubuntu-20.04')
31
+ run : sdkmanager --install "ndk;24.0.8215888"
32
+
33
+ - name : Precompile
34
+ if : (matrix.os == 'macOS-latest') || (matrix.os == 'windows-latest')
35
+ run : dart run build_tool precompile-binaries -v --manifest-dir=../../rust --repository=ethicnology/rust-bip85
36
+ working-directory : bindings/dart-bip85/cargokit/build_tool
37
+ env :
38
+ GITHUB_TOKEN : ${{ secrets.RELEASE_GITHUB_TOKEN }}
39
+ PRIVATE_KEY : ${{ secrets.RELEASE_PRIVATE_KEY }}
40
+
41
+ - name : Precompile (with Android)
42
+ if : (matrix.os == 'ubuntu-latest')
43
+ run : dart run build_tool precompile-binaries -v --manifest-dir=../../rust --repository=ethicnology/rust-bip85 --android-sdk-location=/usr/local/lib/android/sdk --android-ndk-version=24.0.8215888 --android-min-sdk-version=23
44
+ working-directory : bindings/dart-bip85/cargokit/build_tool
45
+ env :
46
+ GITHUB_TOKEN : ${{ secrets.RELEASE_GITHUB_TOKEN }}
47
+ PRIVATE_KEY : ${{ secrets.RELEASE_PRIVATE_KEY }}
Original file line number Diff line number Diff line change
1
+ cargo :
2
+ debug : # Configuration of cargo execution during debug builds
3
+ toolchain : stable # default
4
+ release : # Configuration of cargo execution for release builds
5
+ toolchain : nightly # rustup will be invoked with nightly toolchain
6
+ extra_flags : # extra arguments passed to cargo build
7
+ - -Z
8
+ - build-std=panic_abort,std
9
+
10
+ precompiled_binaries :
11
+ # Uri prefix used when downloading precompiled binaries.
12
+ url_prefix : https://github.com/ethicnology/rust-bip85/releases/download/precompiled_
13
+
14
+ # Public key for verifying downloaded precompiled binaries.
15
+ public_key : e56a85ab8294c9f0cd8bb58a624e23b83b5682380d048e41b041b6624d949976
You can’t perform that action at this time.
0 commit comments