update MSRV #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [ push, pull_request ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
rustfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: nightly | |
components: rustfmt | |
- uses: actions-rust-lang/rustfmt@v1 | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install ImageMagick | |
run: | | |
sudo apt update | |
sudo apt install libwebp-dev | |
wget https://imagemagick.org/archive/ImageMagick.tar.gz | |
tar xf ImageMagick.tar.gz | |
cd ImageMagick-* | |
./configure --enable-hdri --with-webp | |
make -j$(nproc) | |
sudo make install | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
components: clippy | |
- run: cargo clippy --all-targets --all-features -- -D warnings | |
tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
# - macos-latest # jpeg will break things | |
toolchain: | |
- stable | |
- nightly | |
features: | |
- | |
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }}) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install libwebp (Linux) | |
run: | | |
sudo apt update | |
sudo apt install libwebp-dev | |
if: runner.os == 'Linux' | |
- name: Install libwebp (macOS) | |
run: | | |
brew update | |
brew list webp || brew install webp | |
if: runner.os == 'macOS' | |
- name: Install ImageMagick | |
run: | | |
wget https://imagemagick.org/archive/ImageMagick.tar.gz | |
tar xf ImageMagick.tar.gz | |
cd ImageMagick-* | |
./configure --enable-hdri --with-webp | |
make -j$(nproc) | |
sudo make install | |
- run: sudo ldconfig | |
if: runner.os == 'Linux' | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
- run: cargo test ${{ matrix.features }} | |
- run: cargo doc ${{ matrix.features }} | |
MSRV: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
# - macos-latest # jpeg will break things | |
toolchain: | |
- "1.74" | |
features: | |
- | |
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }}) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install libwebp (Linux) | |
run: | | |
sudo apt update | |
sudo apt install libwebp-dev | |
if: runner.os == 'Linux' | |
- name: Install libwebp (macOS) | |
run: | | |
brew update | |
brew list webp || brew install webp | |
if: runner.os == 'macOS' | |
- name: Install ImageMagick | |
run: | | |
wget https://imagemagick.org/archive/ImageMagick.tar.gz | |
tar xf ImageMagick.tar.gz | |
cd ImageMagick-* | |
./configure --enable-hdri --with-webp | |
make -j$(nproc) | |
sudo make install | |
- run: sudo ldconfig | |
if: runner.os == 'Linux' | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
- run: cargo test --lib --bins ${{ matrix.features }} |