Skip to content

Commit

Permalink
Merge pull request #35 from LtbLightning/fix-build-issues-v20
Browse files Browse the repository at this point in the history
Fix build issues v20
  • Loading branch information
BitcoinZavior authored Aug 22, 2024
2 parents b978014 + 4f48ed4 commit 0224557
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/precompile_binaries.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
push:
branches: [main]
branches: [main, v0.20.0]

name: Precompile Binaries

Expand All @@ -21,23 +21,18 @@ jobs:
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: Install GTK
- name: Set up Android SDK
if: (matrix.os == 'ubuntu-20.04')
run: sudo apt-get update && sudo apt-get install libgtk-3-dev
uses: android-actions/setup-android@v2
- name: Install Specific NDK
if: (matrix.os == 'ubuntu-20.04')
run: sdkmanager --install "ndk;24.0.8215888"
- name: Precompile (with iOS)
if: (matrix.os == 'macOS-latest') || (matrix.os == 'windows-latest')
if: (matrix.os == 'macOS-latest')
run: dart run build_tool precompile-binaries -v --manifest-dir=../../rust --repository=LtbLightning/payjoin-flutter
working-directory: cargokit/build_tool
env:
Expand Down
11 changes: 8 additions & 3 deletions rust/cargokit.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cargo:
release:
toolchain: stable
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:
url_prefix: https://github.com/LtbLightning/payjoin-flutter/releases/download/precompiled_
public_key: acc9fbea1d5cca0660ed71b0e516663d36f0180a9826a6e5ba06ca26d4850de7
public_key: acc9fbea1d5cca0660ed71b0e516663d36f0180a9826a6e5ba06ca26d4850de7
3 changes: 3 additions & 0 deletions rust/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[toolchain]
channel = "nightly-2024-07-24"
components = ["rustfmt"]

0 comments on commit 0224557

Please sign in to comment.