summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-21 00:37:57 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-21 00:37:57 +0100
commit92af1b1c123983b94e38519943b6ad4fab3db9d7 (patch)
tree4cd569ad33d504f0b0cedebfa27befe9a955c6fc /.github
parent7016221556ea8183ebcd8ef8df00044e2eda71e7 (diff)
downloadiced-92af1b1c123983b94e38519943b6ad4fab3db9d7.tar.gz
iced-92af1b1c123983b94e38519943b6ad4fab3db9d7.tar.bz2
iced-92af1b1c123983b94e38519943b6ad4fab3db9d7.zip
Fix `todos` build workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml30
1 files changed, 8 insertions, 22 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 804273ff..3b0bf033 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -15,29 +15,15 @@ jobs:
run: |
echo "[profile.release]" >> Cargo.toml
echo "lto = true" >> Cargo.toml
- - name: Add .deb package metadata
- run: |
- echo '[package.metadata.deb.variants.todos]' >> Cargo.toml
- echo 'extended-description = "A simple Todo app built with Iced, a cross-platform GUI library for Rust"' >> Cargo.toml
- echo 'assets = [' >> Cargo.toml
- echo '["target/release/examples/todos", "usr/bin/iced-todos", "755"],' >> Cargo.toml
- echo '["iced-todos.desktop", "usr/share/applications/", "644"]' >> Cargo.toml
- echo ']' >> Cargo.toml
- - name: Create .desktop file
- run: |
- echo '[Desktop Entry]' >> iced-todos.desktop
- echo 'Name=Todos - Iced' >> iced-todos.desktop
- echo 'Exec=iced-todos' >> iced-todos.desktop
- echo 'Type=Application' >> iced-todos.desktop
- name: Build todos binary
- run: cargo build --verbose --release --example todos
+ run: cargo build --verbose --release --package todos
- name: Archive todos binary
uses: actions/upload-artifact@v1
with:
name: todos-x86_64-unknown-linux-gnu
- path: target/release/examples/todos
- - name: Build todos .deb package
- run: cargo deb --variant todos -- --example todos
+ path: target/release/todos
+ - name: Pack todos .deb package
+ run: cargo deb --no-build --package todos
- name: Rename todos .deb package
run: mv target/debian/*.deb target/debian/iced_todos-x86_64-debian-linux-gnu.deb
- name: Archive todos .deb package
@@ -61,12 +47,12 @@ jobs:
echo '[target.x86_64-pc-windows-msvc]' >> .cargo/config
echo 'rustflags = ["-Ctarget-feature=+crt-static"]' >> .cargo/config
- name: Build todos binary
- run: cargo build --verbose --release --example todos
+ run: cargo build --verbose --release --package todos
- name: Archive todos binary
uses: actions/upload-artifact@v1
with:
name: todos-x86_64-pc-windows-msvc
- path: target/release/examples/todos.exe
+ path: target/release/todos.exe
todos_macos:
runs-on: macOS-latest
@@ -80,9 +66,9 @@ jobs:
- name: Build todos binary
env:
MACOSX_DEPLOYMENT_TARGET: 10.14
- run: cargo build --verbose --release --example todos
+ run: cargo build --verbose --release --package todos
- name: Archive todos binary
uses: actions/upload-artifact@v1
with:
name: todos-x86_64-apple-darwin
- path: target/release/examples/todos
+ path: target/release/todos