diff --git a/.github/workflows/precompile_binaries.yml b/.github/workflows/precompile_binaries.yml index c2b99fb..6f83ff5 100644 --- a/.github/workflows/precompile_binaries.yml +++ b/.github/workflows/precompile_binaries.yml @@ -1,6 +1,6 @@ on: push: - branches: [main] + branches: [main, v0.20.0] name: Precompile Binaries @@ -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: diff --git a/rust/cargokit.yaml b/rust/cargokit.yaml index 87c82f9..81bdfee 100644 --- a/rust/cargokit.yaml +++ b/rust/cargokit.yaml @@ -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 \ No newline at end of file diff --git a/rust/rust-toolchain.toml b/rust/rust-toolchain.toml new file mode 100644 index 0000000..d973514 --- /dev/null +++ b/rust/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "nightly-2024-07-24" +components = ["rustfmt"] \ No newline at end of file