Skip to content

Commit

Permalink
chaning opt level to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
BitcoinZavior committed Jun 30, 2024
1 parent f1bae0e commit b101cd7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/precompile_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ name: Precompile Binaries

jobs:
Precompile:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-20.04
- macOS-latest
os: [ubuntu-20.04, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
Expand All @@ -24,7 +22,7 @@ jobs:
run: |
mkdir -p .cargo
echo "[profile.release]" >> .cargo/config.toml
echo "opt-level = '3'" >> .cargo/config.toml
echo "opt-level = 3" >> .cargo/config.toml
echo "lto = true" >> .cargo/config.toml
echo "codegen-units = 1" >> .cargo/config.toml
echo "panic = 'abort'" >> .cargo/config.toml
Expand All @@ -33,14 +31,14 @@ jobs:
with:
channel: 'stable'
- name: Precompile (with iOS)
if: (matrix.os == 'macOS-latest')
if: matrix.os == 'macOS-latest'
run: dart run build_tool precompile-binaries -v --manifest-dir=../../rust --repository=LtbLightning/ldk-node-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')
if: matrix.os == 'ubuntu-20.04'
run: dart run build_tool precompile-binaries -v --manifest-dir=../../rust --repository=LtbLightning/ldk-node-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:
Expand Down

0 comments on commit b101cd7

Please sign in to comment.