Skip to content

Commit

Permalink
New attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia committed Aug 4, 2023
1 parent 6bceffd commit ce9b6db
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,50 @@ jobs:
strategy:
fail-fast: false
matrix:
rust: [stable]
features: ['', default, gif, jpeg, png, tiff, ico, pnm, tga, webp, bmp, hdr, dxt, dds, farbfeld, openexr, jpeg_rayon, webp-encoder]
include:
- rust: beta
features: ['', default, webp, webp-encoder]
- rust: nightly
features: ['', default, webp, webp-encoder]
- rust: "1.61.0"
features: ['', default, webp, webp-encoder]
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
- name: Cache Cargo Dependencies
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Install MSRV Cargo.lock
if: ${{ matrix.rust == '1.61.0' }}
run: mv Cargo.lock.msrv Cargo.lock
- name: build
run: cargo build -v --no-default-features --features "$FEATURES"
env:
FEATURES: ${{ matrix.features }}
- name: test
if: ${{ matrix.rust == 'stable' || matrix.rust == 'beta' || matrix.rust == 'nightly' }}
run: >
cargo test -v --no-default-features --features "$FEATURES" &&
cargo doc -v --no-default-features --features "$FEATURES"
env:
FEATURES: ${{ matrix.features }}

build_other_toolchains:
name: Run tests and doctests on ubuntu
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: ["1.61.0", nightly, beta]
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
- name: Cache Cargo Dependencies
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Install MSRV Cargo.lock
if: ${{ matrix.rust == '1.61.0' }}
run: mv Cargo.lock.msrv Cargo.lock
- name: build
run: cargo build -v --all-features
- name: test
if: ${{ matrix.rust != "1.61.0" }}
run: cargo test -v --all-features && cargo doc -v --all-features

build_big_endian:
name: Run tests on big endian architecture

Expand Down Expand Up @@ -91,16 +102,6 @@ jobs:
env:
FEATURES: ${{ matrix.features }}

test_defaults:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
- name: build
run: cargo build -v --release
- name: test
run: cargo test -v --release

test_avif:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit ce9b6db

Please sign in to comment.