Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
364d384
feature: add vk feature for libwayshot
Gigas002 Mar 12, 2026
5ded5f0
refactor: move egl-related code in it's own module
Gigas002 Mar 12, 2026
585aa43
feature: add egl/vk features for cli
Gigas002 Mar 12, 2026
257eea7
refactor: move tests in tests.rs
Gigas002 Mar 12, 2026
c0202d7
fix: revert #290
Gigas002 Mar 12, 2026
71763b8
fix: improve testing
Gigas002 Mar 12, 2026
59f4db5
feature: add benches
Gigas002 Mar 12, 2026
fb0f420
chore: bump deps
Gigas002 Mar 12, 2026
75f9baf
fix: rm waymirror-only dep from root cargo.toml
Gigas002 Mar 12, 2026
d433fef
fix: add benchmarking job to ci
Gigas002 Mar 12, 2026
af3b228
fix: cargo fmt
Gigas002 Mar 12, 2026
e4e3eb7
fix: fixing the image-rs related stuff
Gigas002 Mar 12, 2026
76fd888
fix: revert libjxl update
Gigas002 Mar 12, 2026
3beac52
fix: clippy be happy
Gigas002 Mar 12, 2026
377594f
fix: tests be happy
Gigas002 Mar 12, 2026
3ee3589
fix: fixing test related stuff
Gigas002 Mar 12, 2026
365a9a3
fix: fix minor warns in tests
Gigas002 Mar 12, 2026
63bb38b
fix: fix benches
Gigas002 Mar 12, 2026
c30bbe4
fix: allow generating html for bench report
Gigas002 Mar 12, 2026
6ce8cc8
fix: fix coverage job
Gigas002 Mar 12, 2026
20dbc1c
fix: fix licensing issues
Gigas002 Mar 12, 2026
688c484
fix: leave only root license files and notes in cargo.toml
Gigas002 Mar 12, 2026
a2dc909
feature: add freeze option
Gigas002 Mar 12, 2026
72b6ee0
feature: add delay option
Gigas002 Mar 12, 2026
4019766
feature: support 3rd party tools for geometry selection
Gigas002 Mar 12, 2026
cb3c1b0
refactor: refactor CI workflows
Gigas002 Mar 12, 2026
24c4ebb
fix: vk fixes
Gigas002 Mar 12, 2026
b2ac3d5
fix: enable vulkan for bench job
Gigas002 Mar 12, 2026
1ffaa12
fix: vk bench be happy
Gigas002 Mar 12, 2026
bba4972
fix: vk bench be happy please
Gigas002 Mar 12, 2026
95c3860
fix: minor fix for bench job
Gigas002 Mar 12, 2026
133aadc
fix: add some more time for bench job
Gigas002 Mar 12, 2026
9adafd5
fix: try to add more time for bench job
Gigas002 Mar 12, 2026
850a305
fix: update readme
Gigas002 Mar 12, 2026
e428ab5
fix: disable default features for libwayshot
Gigas002 Mar 12, 2026
aa4f460
fix: update docs a little
Gigas002 Mar 12, 2026
cb6268c
Merge branch 'main' into test/vk-ref
Gigas002 Mar 13, 2026
af84eb2
chore: bump deps
Gigas002 Mar 13, 2026
d7fb0a4
do-not-merge: temporarily depend on git branch of waysip to see if it…
Gigas002 Mar 13, 2026
29da28d
Merge remote-tracking branch 'origin/main' into test/vk-ref
Gigas002 Mar 18, 2026
89592c1
chore: bump deps again
Gigas002 Mar 18, 2026
f4c2ef7
fix: try to use all-features in CI
Gigas002 Mar 18, 2026
261ba6b
fix: add several more build jobs
Gigas002 Mar 18, 2026
d7cefcb
fix: add cli tests
Gigas002 Mar 18, 2026
6f40ee2
fix: test be pass
Gigas002 Mar 18, 2026
d7c056e
fix: fix remaining tests
Gigas002 Mar 18, 2026
e4bec5a
fix: fix CI warn about node 20
Gigas002 Mar 18, 2026
b00aeae
fix: revert node 24 - no effect
Gigas002 Mar 18, 2026
015b6c2
Merge branch 'main' into test/vk-ref
Gigas002 Mar 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Benchmarks

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
bench:
runs-on: ubuntu-latest
container:
image: archlinux:latest

steps:
- name: Checkout
uses: actions/checkout@v6

- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt

- name: Build Cache
uses: Swatinem/rust-cache@v2

- name: Install wayland dependencies
run: |
pacman -Syu --noconfirm egl-wayland egl-gbm wayland base-devel mesa pango cairo libjxl gnuplot

- name: Run benchmarks
run: |
cargo bench -p libwayshot --features "bench,egl,vulkan" --no-fail-fast --bench image_ops --bench capture 2>&1 | tee bench-output.txt

- name: Upload benchmark report
uses: actions/upload-artifact@v7
with:
name: criterion-report
path: target/criterion/
continue-on-error: true

- name: Benchmark summary
run: |
echo "## Benchmark results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
if [ -f bench-output.txt ]; then
echo "<details><summary>Console output</summary>" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
tail -80 bench-output.txt >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "</details>" >> $GITHUB_STEP_SUMMARY
fi
echo "" >> $GITHUB_STEP_SUMMARY
echo "Download the **criterion-report** artifact and open \`report/index.html\` for the full report." >> $GITHUB_STEP_SUMMARY
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: default
cargo_args: --workspace --release
- name: minimal
cargo_args: --workspace --release --no-default-features --features "png"
cargo_args: --workspace --release --no-default-features --features "egl,png"

name: ${{ matrix.name }}
runs-on: ubuntu-latest
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/deny.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: cargo-deny

on: [push, pull_request]

jobs:
deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- uses: dtolnay/rust-toolchain@stable

- name: Install cargo-deny
run: cargo install cargo-deny

- name: Run cargo deny
run: cargo deny check licenses
Loading
Loading