Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Commit 6e93d09

Browse files
authored
fix: build error
1 parent 985530c commit 6e93d09

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,18 @@ jobs:
6868
fetch-depth: 1
6969

7070
- name: Set up for build
71+
shell: powershell
7172
run: |
72-
echo "Ready to build ${{ needs.check.outputs.latest_tag }}"
73+
Write-Output "Ready to build ${{ needs.check.outputs.latest_tag }}"
74+
if (Test-Path ".cargo/config.toml") {
75+
$configString = "[profile.release]`n debug = false`n lto = `"fat`"`n opt-level = 3`n codegen-units = 1`n panic = `"abort`"`n strip = true"
76+
Write-Output "Configuration string: $configString"
77+
$configString | Add-Content .cargo/config.toml
78+
Write-Output "Successfully appended build parameters to .cargo/config.toml"
79+
Get-Content .cargo/config.toml
80+
} else {
81+
Write-Output "Error: .cargo/config.toml file does not exist"
82+
}
7383
7484
- name: Install rust
7585
uses: actions-rs/toolchain@v1

0 commit comments

Comments
 (0)