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: