Skip to content

Commit

Permalink
Fixed config.toml creation in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
albbus-stack committed May 23, 2024
1 parent 1264056 commit 7eb4550
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: Swatinem/rust-cache@v2

- name: Create .cargo/config.toml file
run: printf "[profile.release]\nopt-level = "z"\ndebug = false\nlto = true\ncodegen-units = 1\npanic = "abort"\nstrip = true\nincremental = false\n" > .cargo/config.toml
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: Create .env file
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: cargo install dioxus-cli

- name: Create .cargo/config.toml file
run: printf "[profile.release]\nopt-level = "z"\ndebug = false\nlto = true\ncodegen-units = 1\npanic = "abort"\nstrip = true\nincremental = false\n" > .cargo/config.toml
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: Create .env file
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: superfly/flyctl-actions/setup-flyctl@master

- name: Create .cargo/config.toml file
run: printf "[profile.release]\nopt-level = "z"\ndebug = false\nlto = true\ncodegen-units = 1\npanic = "abort"\nstrip = true\nincremental = false\n" > .cargo/config.toml
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: Create .env file
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: cargo install dioxus-cli

- name: Create .cargo/config.toml file
run: printf "[profile.release]\nopt-level = "z"\ndebug = false\nlto = true\ncodegen-units = 1\npanic = "abort"\nstrip = true\nincremental = false\n" > .cargo/config.toml
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: Create .env file
env:
Expand Down

0 comments on commit 7eb4550

Please sign in to comment.