enable stricter optimization for CI builds
/ build (push) Successful in 44s Details
/ build_x64 (push) Failing after 46s Details
/ build_arm64 (push) Failing after 1m7s Details
/ build_win64 (push) Failing after 1m5s Details

This commit is contained in:
core 2023-12-15 22:40:04 -05:00
parent d44a6c1166
commit c0ceed09fb
Signed by: core
GPG Key ID: FDBF740DADDCEECF
2 changed files with 7 additions and 3 deletions

View File

@ -26,7 +26,7 @@ jobs:
uses: https://github.com/actions-rs/cargo@v1 uses: https://github.com/actions-rs/cargo@v1
with: with:
command: build command: build
args: --release --bin tfclient args: --release --bin tfclient --profile release-ci
- name: Upload binary - 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 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: build_arm64:
@ -54,7 +54,7 @@ jobs:
RUSTFLAGS: "-C linker=aarch64-linux-gnu-gcc" RUSTFLAGS: "-C linker=aarch64-linux-gnu-gcc"
with: with:
command: build 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 - 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 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: build_win64:
@ -80,7 +80,7 @@ jobs:
uses: https://github.com/actions-rs/cargo@v1 uses: https://github.com/actions-rs/cargo@v1
with: with:
command: build 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 - name: Compile release bundle
run: ./build_windows.sh run: ./build_windows.sh
- name: Upload binary - name: Upload binary

View File

@ -10,4 +10,8 @@ members = [
"trifid-api-derive" "trifid-api-derive"
] ]
[profile.release-ci]
inherits = "release"
lto = true
resolver = "2" resolver = "2"