From 172c13a5600a14e08dd73d6ebec2fe9d349a1788 Mon Sep 17 00:00:00 2001 From: Alberto Del Buono Paolini Date: Wed, 29 May 2024 12:32:27 +0200 Subject: [PATCH] Fixed android action config.toml --- .github/workflows/android.yml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index c7c6eda..9dff0ad 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -66,15 +66,10 @@ jobs: with: profile: minimal toolchain: stable - target: wasm32-unknown-unknown - override: true - name: Cache Rust dependencies uses: Swatinem/rust-cache@v2 - - name: Add Rust Android targets - run: rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android - - name: Install Cargo Mobile CLI run: cargo install --git https://github.com/tauri-apps/cargo-mobile2 @@ -95,18 +90,17 @@ jobs: - name: Run cargo mobile init run: cargo mobile init - - name: Append release config to .cargo/config.toml - run: | - cat .cargo/config.toml + # - name: Append release config to .cargo/config.toml + # run: | + # cat .cargo/config.toml - { - cat .cargo/config.toml; - printf "\n[target.aarch64-linux-android]\nlinker = \"/home/runner/.setup-ndk/r26d/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang\"\n" - printf "\n[profile.release]\nopt-level = \"z\"\ndebug = false\nlto = true\ncodegen-units = 1\npanic = \"abort\"\nstrip = true\nincremental = false\n"; - } > .cargo/config.toml + # { + # cat .cargo/config.toml; + # printf "\n[target.aarch64-linux-android]\nlinker = \"/home/runner/.setup-ndk/r26d/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang\"\n" + # printf "\n[profile.release]\nopt-level = \"z\"\ndebug = false\nlto = true\ncodegen-units = 1\npanic = \"abort\"\nstrip = true\nincremental = false\n"; + # } > .cargo/config.toml - cat .cargo/config.toml - ls -la $TOOLCHAIN/bin + # cat .cargo/config.toml - name: Create .env env: