From c0bb7dc3d782c7f5a9890a2cf3bed92387378560 Mon Sep 17 00:00:00 2001 From: caleb Date: Mon, 18 Mar 2024 22:50:35 +0300 Subject: [PATCH] github: try to commit image features check To catch things like https://github.com/etemesi254/zune-image/issues/164 --- .github/workflows/image_features.yml | 22 ++++++++++++++++++++++ .github/workflows/rust.yml | 14 +++++++------- 2 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/image_features.yml diff --git a/.github/workflows/image_features.yml b/.github/workflows/image_features.yml new file mode 100644 index 00000000..3cbd231f --- /dev/null +++ b/.github/workflows/image_features.yml @@ -0,0 +1,22 @@ +name: Investigate image features that run + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + strategy: + matrix: + features:[image_formats, serde-support, metadata, threads, simd, log,jpeg, ppm, png, psd, farbfeld, qoi, jpeg-xl, hdr, bmp] + + runs-on: ubuntu-latest + + + + steps: + - name: Check independent feature build Basics + uses: actions-rs/cargo@v1 + with: + command: check + args: -p zune-image --no-default-features -F ${{ matrix.features }} + diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 60bd5d03..b2d6e9e4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,9 +2,9 @@ name: Rust on: push: - branches: [ "main","dev" ] + branches: [ "main","dev","gif" ] pull_request: - branches: [ "main","dev" ] + branches: [ "main","dev" ,"gif" ] env: CARGO_TERM_COLOR: always @@ -26,9 +26,9 @@ jobs: os: macos-latest target: x86_64-apple-darwin - # - name: Web - # os: ubuntu-latest - # target: wasm32-unknown-unknown + # - name: Web + # os: ubuntu-latest + # target: wasm32-unknown-unknown runs-on: ${{ matrix.os }} @@ -54,6 +54,6 @@ jobs: uses: actions-rs/cargo@v1 if: matrix.name != 'Windows' # Windows sucks due to paths, and command syntac with: - command: test - args: --target ${{ matrix.target }} --workspace --all --no-default-features + command: test + args: --target ${{ matrix.target }} --workspace --all --no-default-features