From 53ee0c7f4ac382e137788605696c78decc564d3f Mon Sep 17 00:00:00 2001 From: Alberto Del Buono Paolini Date: Tue, 28 May 2024 17:44:35 +0200 Subject: [PATCH] Generate correct config.toml in android action --- .github/workflows/android.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 9e064e3..0e7b84c 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -69,8 +69,15 @@ jobs: - name: Generate TailwindCSS run: bun build:tailwind - - name: Create .cargo/config.toml file - run: mkdir .cargo && printf "[profile.release]\nopt-level = \"z\"\ndebug = false\nlto = true\ncodegen-units = 1\npanic = \"abort\"\nstrip = true\nincremental = false\n" > .cargo/config.toml + - name: Run cargo mobile init + run: cargo mobile init + + - name: Append release config to .cargo/config.toml file + run: | + { + cat .cargo/config.toml; + printf "\n[profile.release]\nopt-level = \"z\"\ndebug = false\nlto = true\ncodegen-units = 1\npanic = \"abort\"\nstrip = true\nincremental = false\n"; + } > .cargo/config.toml - name: Create .env file env: