diff --git a/.forgejo/workflows/tfclient.yml b/.forgejo/workflows/tfclient.yml index 2c0e32f..4768640 100644 --- a/.forgejo/workflows/tfclient.yml +++ b/.forgejo/workflows/tfclient.yml @@ -26,7 +26,7 @@ jobs: uses: https://github.com/actions-rs/cargo@v1 with: command: build - args: --release --bin tfclient + args: --release --bin tfclient --profile release-ci - name: Upload binary run: sshpass -p "${{ secrets.TRIFID_DLCDN_PASSWORD }}" rsync --mkpath -e 'ssh -p ${{ secrets.TRIFID_DLCDN_PORT }} -o StrictHostKeyChecking=no' target/release/tfclient ${{ secrets.TRIFID_DLCDN_USER }}@${{ secrets.TRIFID_DLCDN_IP }}:${{ secrets.TRIFID_DLCDN_PATH }}/tfclient/amd64/$GITHUB_SHA/tfclient build_arm64: @@ -54,7 +54,7 @@ jobs: RUSTFLAGS: "-C linker=aarch64-linux-gnu-gcc" with: command: build - args: --release --bin tfclient --target aarch64-unknown-linux-gnu + args: --release --bin tfclient --target aarch64-unknown-linux-gnu --profile release-ci - name: Upload binary run: sshpass -p "${{ secrets.TRIFID_DLCDN_PASSWORD }}" rsync --mkpath -e 'ssh -p ${{ secrets.TRIFID_DLCDN_PORT }} -o StrictHostKeyChecking=no' target/aarch64-unknown-linux-gnu/release/tfclient ${{ secrets.TRIFID_DLCDN_USER }}@${{ secrets.TRIFID_DLCDN_IP }}:${{ secrets.TRIFID_DLCDN_PATH }}/tfclient/arm64/$GITHUB_SHA/tfclient build_win64: @@ -80,7 +80,7 @@ jobs: uses: https://github.com/actions-rs/cargo@v1 with: command: build - args: --release --bin tfclient --target x86_64-pc-windows-gnu + args: --release --bin tfclient --target x86_64-pc-windows-gnu --profile release-ci - name: Compile release bundle run: ./build_windows.sh - name: Upload binary diff --git a/Cargo.toml b/Cargo.toml index 078a5d9..33a72ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,4 +10,8 @@ members = [ "trifid-api-derive" ] +[profile.release-ci] +inherits = "release" +lto = true + resolver = "2" \ No newline at end of file