Skip to content

Commit 78045a3

Browse files
committed
TEST
1 parent 211fd4a commit 78045a3

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/linux.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,15 @@ jobs:
5858
mv target/debug/czkawka_cli linux_czkawka_cli_${{ env.ARCHNAME }}
5959
mv target/debug/czkawka_gui linux_czkawka_gui_${{ env.ARCHNAME }}
6060
mv target/debug/krokiet linux_krokiet_${{ env.ARCHNAME }}
61+
cargo build --bin krokiet --no-default-features --features "winit_skia_opengl,winit_software"
62+
mv target/debug/krokiet linux_krokiet_skia_opengl_${{ env.ARCHNAME }}
6163
6264
cargo build --features "heif,libraw"
6365
mv target/debug/czkawka_cli linux_czkawka_cli_heif_raw_${{ env.ARCHNAME }}
6466
mv target/debug/czkawka_gui linux_czkawka_gui_heif_raw_${{ env.ARCHNAME }}
6567
mv target/debug/krokiet linux_krokiet_heif_raw_${{ env.ARCHNAME }}
68+
cargo build --bin krokiet --no-default-features --features "winit_skia_opengl,winit_software,heif,libraw"
69+
mv target/debug/krokiet linux_krokiet_heif_raw_skia_opengl_${{ env.ARCHNAME }}
6670
6771
- name: Store
6872
uses: actions/upload-artifact@v4
@@ -75,6 +79,8 @@ jobs:
7579
linux_czkawka_cli_heif_raw_${{ env.ARCHNAME }}
7680
linux_czkawka_gui_heif_raw_${{ env.ARCHNAME }}
7781
linux_krokiet_heif_raw_${{ env.ARCHNAME }}
82+
linux_krokiet_skia_opengl_${{ env.ARCHNAME }}
83+
linux_krokiet_heif_raw_skia_opengl_${{ env.ARCHNAME }}
7884
7985
- name: Release
8086
if: ${{ github.ref == 'refs/heads/master' }}

czkawka_core/src/tools/similar_images/core.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ impl SimilarImages {
160160

161161
let (loaded_hash_map, records_already_cached, non_cached_files_to_check) = self.hash_images_load_cache();
162162

163-
let check_was_stopped = Arc::new(AtomicBool::new(false));
164163
let progress_handler = prepare_thread_handler_common(
165164
progress_sender,
166165
CurrentStage::SimilarImagesCalculatingHashes,
@@ -174,7 +173,6 @@ impl SimilarImages {
174173
.into_par_iter()
175174
.map(|(_s, file_entry)| {
176175
if check_if_stop_received(stop_flag) {
177-
check_was_stopped.store(true, Ordering::Relaxed);
178176
return None;
179177
}
180178
let size = file_entry.size;
@@ -211,7 +209,7 @@ impl SimilarImages {
211209
self.save_to_cache(vec_file_entry, loaded_hash_map);
212210

213211
// Break if stop was clicked after saving to cache
214-
if check_was_stopped.load(Ordering::Relaxed) {
212+
if stop_flag.load(Ordering::Relaxed) {
215213
return WorkContinueStatus::Stop;
216214
}
217215

misc/test_read_perf/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
use czkawka_core::tools::duplicate::{hash_calculation, DuplicateEntry, HashType};
1+
use czkawka_core::tools::duplicate::{hash_calculation, DuplicateEntry};
2+
use czkawka_core::common::model::HashType;
23
use humansize::{format_size, BINARY};
34
use rayon::prelude::*;
45
use std::cell::RefCell;

0 commit comments

Comments
 (0)