Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 17 additions & 4 deletions .github/workflows/generate-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Generate binaries
on: [workflow_dispatch]

env:
ISPC_VERSION: 1.20.0
ISPC_VERSION: 1.30.0

jobs:
build-linux:
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:

- uses: actions/upload-artifact@v6
with:
name: ISPC kernels Ubuntu
name: ISPC kernels Linux
path: |
src/ispc/downsample_ispc.rs
src/ispc/lib*.a
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:

- uses: actions/upload-artifact@v6
with:
name: ISPC kernels macOS
name: ISPC kernels Apple
path: |
src/ispc/lib*.a

Expand All @@ -84,7 +84,7 @@ jobs:
with:
submodules: true

- name: Clean old artifacts before upload globbing
- name: Clean old artifacts
run: Remove-Item src/ispc/*.lib

- name: Prepare Environment
Expand All @@ -107,3 +107,16 @@ jobs:
name: ISPC kernels Windows
path: |
src/ispc/*.lib

merge:
runs-on: ubuntu-latest
needs:
- build-linux
- build-macos
- build-windows
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: ISPC kernels for ispc-downsampler
delete-merged: true
5 changes: 2 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ fn compile_bindings() {
TargetISA::SSE4i32x4,
TargetISA::AVX1i32x8,
TargetISA::AVX2i32x8,
TargetISA::AVX512KNLi32x16,
TargetISA::AVX512SKXi32x16,
TargetISA::AVX512SKXx16,
],
"arm" | "aarch64" => vec![
// TargetISA::Neoni32x4,
TargetISA::Neoni32x8,
],
x => panic!("Unsupported target architecture {}", x),
x => panic!("Unsupported target architecture {x}"),
};

Config::new()
Expand Down
2 changes: 1 addition & 1 deletion examples/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::time::Instant;
fn main() {
let res = load(Path::new("test_assets/square_test.png"));
match res {
LoadResult::Error(str) => panic!("Image loading error: {}", str),
LoadResult::Error(str) => panic!("Image loading error: {str}"),
LoadResult::ImageU8(img) => {
assert!(!img.data.is_empty());

Expand Down
Loading