Skip to content

Commit

Permalink
Generate correct config.toml in android action
Browse files Browse the repository at this point in the history
  • Loading branch information
albbus-stack committed May 28, 2024
1 parent ff7bcde commit 53ee0c7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 53ee0c7

Please sign in to comment.