Skip to content

Commit

Permalink
CI: リリースビルド時のオプションでビルドプロファイルを切り替える (#476)
Browse files Browse the repository at this point in the history
CI リリース時に release profile を書き換えるハックではなく、 `--profile release-lto`
オプションを付けてビルドするようにします。

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **パフォーマンス向上**
- ビルドプロセスにおいて、最適化オプションの設定を削除し、より効率的なリリースビルドのために`--profile
release-lto`オプションを追加しました。

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
ciscorn authored Mar 14, 2024
1 parent 2b0934b commit 79a7d34
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,12 @@ jobs:
run: npm install
working-directory: ./app

- name: Set optimization options
run: |
echo '[profile.release]' >> Cargo.toml
echo 'lto = "fat"' >> Cargo.toml
echo 'panic = "abort"' >> Cargo.toml
- name: Build the app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: "--profile release-lto"
tagName: ${{ github.event.release.tag_name }}
releaseName: "PLATEAU GIS Converter v__VERSION__"
releaseDraft: true
Expand Down

0 comments on commit 79a7d34

Please sign in to comment.