Skip to content

Commit

Permalink
build: upload artifacts in ci; use LTO for release build (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
myrrc authored Oct 25, 2023
1 parent 6108ad3 commit 56b4296
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
run: cargo build --verbose --release
- name: Run tests
run: cargo run --bin aw-watcher-window-wayland -- --help
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: aw-watcher-window-wayland
path: target/release/aw-watcher-window-wayland
if-no-files-found: error
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ gethostname = "0.2"
getopts = "0.2"

aw-client-rust = { git = "https://github.com/ActivityWatch/aw-server-rust.git" }

[profile.release]
opt-level = 3
lto = true
strip = true
codegen-units = 1

0 comments on commit 56b4296

Please sign in to comment.