Skip to content

Commit

Permalink
Fixed android action config.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
albbus-stack committed May 29, 2024
1 parent 0c102b0 commit 172c13a
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit 172c13a

Please sign in to comment.