-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from LtbLightning/v31-upgrade
V31 upgrade
- Loading branch information
Showing
126 changed files
with
70,075 additions
and
36,724 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,48 @@ | ||
on: | ||
push: | ||
branches: [v0.31.0-dev, master, main] | ||
|
||
name: Precompile Binaries | ||
|
||
jobs: | ||
Precompile: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-20.04 | ||
- macOS-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- name: Configure Cargo.toml optimizations | ||
run: | | ||
mkdir -p .cargo | ||
echo "[profile.release]" >> .cargo/config.toml | ||
echo "opt-level = 'z'" >> .cargo/config.toml | ||
echo "lto = true" >> .cargo/config.toml | ||
echo "codegen-units = 1" >> .cargo/config.toml | ||
echo "panic = 'abort'" >> .cargo/config.toml | ||
- uses: dart-lang/setup-dart@v1 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
- name: Precompile (with iOS) | ||
if: (matrix.os == 'macOS-latest') | ||
run: dart run build_tool precompile-binaries -v --manifest-dir=../../rust --repository=LtbLightning/bdk-flutter | ||
working-directory: cargokit/build_tool | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | ||
PRIVATE_KEY: ${{ secrets.CARGOKIT_PRIVATE_KEY }} | ||
- name: Precompile (with Android) | ||
if: (matrix.os == 'ubuntu-20.04') | ||
run: dart run build_tool precompile-binaries -v --manifest-dir=../../rust --repository=LtbLightning/bdk-flutter --android-sdk-location=/usr/local/lib/android/sdk --android-ndk-version=24.0.8215888 --android-min-sdk-version=23 | ||
working-directory: cargokit/build_tool | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | ||
PRIVATE_KEY: ${{ secrets.CARGOKIT_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
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
Oops, something went wrong.