summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-14 18:06:04 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-14 18:06:04 +0200
commit7022090a97c19c8175ae103a6d7bea8a1055c301 (patch)
tree5ad3a8783858d926726999546e8acfa478cf6b4a /.github
parent8f03a727427bda5a1bfaf8c2969f651b9d021745 (diff)
downloadiced-7022090a97c19c8175ae103a6d7bea8a1055c301.tar.gz
iced-7022090a97c19c8175ae103a6d7bea8a1055c301.tar.bz2
iced-7022090a97c19c8175ae103a6d7bea8a1055c301.zip
Use `release-opt` profile in `build` workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml38
1 files changed, 11 insertions, 27 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index beec168b..6ccf1d9a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -16,17 +16,13 @@ jobs:
export DEBIAN_FRONTED=noninteractive
sudo apt-get -qq update
sudo apt-get install -y libxkbcommon-dev
- - name: Enable Link Time Optimizations
- run: |
- echo "[profile.release]" >> Cargo.toml
- echo "lto = true" >> Cargo.toml
- name: Build todos binary
- run: cargo build --verbose --release --package todos
+ run: cargo build --verbose --profile release-opt --package todos
- name: Archive todos binary
uses: actions/upload-artifact@v1
with:
name: todos-x86_64-unknown-linux-gnu
- path: target/release/todos
+ path: target/release-opt/todos
- name: Pack todos .deb package
run: cargo deb --no-build --package todos
- name: Rename todos .deb package
@@ -42,10 +38,6 @@ jobs:
steps:
- uses: hecrj/setup-rust-action@v1
- uses: actions/checkout@master
- - name: Enable Link Time Optimizations
- run: |
- echo "[profile.release]" >> Cargo.toml
- echo "lto = true" >> Cargo.toml
- name: Enable static CRT linkage
run: |
mkdir .cargo
@@ -55,33 +47,29 @@ jobs:
run: |
sed -i '1 i\#![windows_subsystem = \"windows\"]' examples/todos/src/main.rs
- name: Build todos binary
- run: cargo build --verbose --release --package todos
+ run: cargo build --verbose --profile release-opt --package todos
- name: Archive todos binary
uses: actions/upload-artifact@v1
with:
name: todos-x86_64-pc-windows-msvc
- path: target/release/todos.exe
+ path: target/release-opt/todos.exe
todos_macos:
runs-on: macOS-latest
steps:
- uses: hecrj/setup-rust-action@v1
- uses: actions/checkout@master
- - name: Enable Link Time Optimizations
- run: |
- echo "[profile.release]" >> Cargo.toml
- echo "lto = true" >> Cargo.toml
- name: Build todos binary
env:
MACOSX_DEPLOYMENT_TARGET: 10.14
- run: cargo build --verbose --release --package todos
+ run: cargo build --verbose --profile release-opt --package todos
- name: Open binary via double-click
- run: chmod +x target/release/todos
+ run: chmod +x target/release-opt/todos
- name: Archive todos binary
uses: actions/upload-artifact@v1
with:
name: todos-x86_64-apple-darwin
- path: target/release/todos
+ path: target/release-opt/todos
todos_raspberry:
runs-on: ubuntu-latest
@@ -90,21 +78,17 @@ jobs:
- uses: actions/checkout@master
- name: Install cross
run: cargo install cross
- - name: Enable Link Time Optimizations
- run: |
- echo "[profile.release]" >> Cargo.toml
- echo "lto = true" >> Cargo.toml
- name: Build todos binary for Raspberry Pi 3/4 (64 bits)
- run: cross build --verbose --release --package todos --target aarch64-unknown-linux-gnu
+ run: cross build --verbose --profile release-opt --package todos --target aarch64-unknown-linux-gnu
- name: Archive todos binary
uses: actions/upload-artifact@v1
with:
name: todos-aarch64-unknown-linux-gnu
- path: target/aarch64-unknown-linux-gnu/release/todos
+ path: target/aarch64-unknown-linux-gnu/release-opt/todos
- name: Build todos binary for Raspberry Pi 2/3/4 (32 bits)
- run: cross build --verbose --release --package todos --target armv7-unknown-linux-gnueabihf
+ run: cross build --verbose --profile release-opt --package todos --target armv7-unknown-linux-gnueabihf
- name: Archive todos binary
uses: actions/upload-artifact@v1
with:
name: todos-armv7-unknown-linux-gnueabihf
- path: target/armv7-unknown-linux-gnueabihf/release/todos
+ path: target/armv7-unknown-linux-gnueabihf/release-opt/todos