- Added new methods of HeifContext
(#32):
#44
This file contains hidden or 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: Check and Test | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: { } | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
run_tests_on_linux: | |
name: Run `cargo check/test` on Ubuntu | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: root suid tar | |
run: sudo chown root:sudo /bin/tar && sudo chmod u+s /bin/tar | |
- name: Cache APT | |
id: cache-apt | |
uses: actions/cache@v4 | |
with: | |
path: | | |
/etc/apt | |
/var/lib/apt | |
key: ${{ runner.os }}-apt | |
- name: Install system dependencies | |
uses: awalsh128/[email protected] | |
with: | |
packages: | |
libheif-dev libdav1d-dev libheif-plugin-aomdec | |
libheif-plugin-aomenc libheif-plugin-libde265 | |
libnuma-dev | |
version: 1.17.6 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: "true" | |
- name: Run tests for v1.17 | |
run: | | |
cargo check -p libheif-rs --features embedded-libheif,v1_17 | |
cargo test --features embedded-libheif,v1_17 | |
- name: Run tests for v1.18 | |
run: | | |
cargo check -p libheif-rs --features embedded-libheif,v1_18 | |
cargo test --features embedded-libheif,v1_18 | |
- name: Run tests for v1.19 | |
run: | | |
cargo check -p libheif-rs --features embedded-libheif,v1_19 | |
cargo test --features embedded-libheif,v1_19 | |
# run_tests_on_windows: | |
# name: Run `cargo check/test` on Windows | |
# runs-on: windows-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# | |
# - name: Cache rust artifacts | |
# uses: Swatinem/rust-cache@v2 | |
# with: | |
# cache-all-crates: true | |
# cache-on-failure: "true" | |
# | |
# - name: Cache vcpkg | |
# id: cache-vcpkg | |
# uses: actions/cache@v3 | |
# with: | |
# path: "target/vcpkg" | |
# key: ${{ runner.os }}-vcpkg | |
# | |
# - name: Install cargo-vcpkg | |
# run: cargo install cargo-vcpkg | |
# | |
# - name: Build libheif | |
# run: cargo vcpkg -v build | |
# | |
# - name: Run tests | |
# run: | | |
# cargo check -p libheif-rs | |
# cargo test |