c2pa-rs

A fork of https://github.com/contentauth/c2pa-rs/
git clone git://archive.git.mtrnord.blog/mtrnords-photography-manager/c2pa-rs.git
Log | Files | Refs | README

commit 737a804e410b0e588d3c1d191b0fbd65490f43c3
parent 62e3c1a656c010942ce41a5deb58002f1a0f9b46
Author: Eric Scouten <scouten@adobe.com>
Date:   Tue, 11 Apr 2023 11:39:15 -0400

Add support for ARM on Linux (#233)


Diffstat:
M.github/workflows/ci.yml | 37+++++++++++++++++++++++++++++++++++--
MREADME.md | 4++--
2 files changed, 37 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml @@ -44,8 +44,41 @@ jobs: fail_ci_if_error: true verbose: true - wasm_tests: - name: Wasm tests + tests-cross: + name: Unit tests + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + target: [aarch64-unknown-linux-gnu] + rust_version: [stable, 1.65.0] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ matrix.rust_version }} + targets: ${{ matrix.target }} + + - name: Install cross-compilation toolset + run: cargo install cross + + - name: Cache Rust dependencies + uses: Swatinem/rust-cache@v1 + + # Note that we do not run code coverage because + # it isn't readily accessible from cross-compilation + # environment. (A PR to fix this would be welcomed!) + + - name: Run unit tests (cross build) + run: cross test --all-targets --all-features --target ${{ matrix.target }} + + tests-wasm: + name: Unit tests (WASM) runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md @@ -31,9 +31,9 @@ The SDK requires **Rust version 1.65.0** or newer. The SDK has been tested on the following operating systems: -* Windows +* Windows (Intel only) * MacOS (Intel and Apple silicon) -* Ubuntu Linux +* Ubuntu Linux (64-bit Intel and ARM v8) * WebAssembly (Wasm) ## Supported file formats