Skip to content

feat: Add a feature that allows piet to be used in no_std environments #898

feat: Add a feature that allows piet to be used in no_std environments

feat: Add a feature that allows piet to be used in no_std environments #898

Workflow file for this run

on: pull_request
jobs:
compare-snapshots:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-11, windows-2019, ubuntu-latest]
name: compare snapshots
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: 'true'
- name: install libgtk-dev
run: |
sudo apt update
sudo apt install libgtk-3-dev
if: contains(matrix.os, 'ubuntu')
- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: generate and compare (1.00) (ubuntu+cairo)
uses: actions-rs/cargo@v1
with:
command: run
args: --manifest-path=piet-cairo/Cargo.toml --example=test-picture -- --all --scale=1 --out=cairo_samples --compare=./piet/snapshots/cairo
if: contains(matrix.os, 'ubuntu')
- name: generate and compare (2.00) (ubuntu+cairo)
uses: actions-rs/cargo@v1
with:
command: run
args: --manifest-path=piet-cairo/Cargo.toml --example=test-picture -- --all --scale=2 --out=cairo_samples --compare=./piet/snapshots/cairo
if: contains(matrix.os, 'ubuntu')
- name: upload failures (ubuntu+cairo)
uses: actions/upload-artifact@v2
with:
name: cairo-failure
path: cairo_samples
if: contains(matrix.os, 'ubuntu') && failure()
- name: generate and compare (1.00) (macOS)
uses: actions-rs/cargo@v1
with:
command: run
args: --manifest-path=piet-coregraphics/Cargo.toml --example=test-picture -- --all --scale=1 --out=coregraphics_samples --compare=./piet/snapshots/coregraphics
if: contains(matrix.os, 'macOS')
- name: generate and compare (2.00) (macOS)
uses: actions-rs/cargo@v1
with:
command: run
args: --manifest-path=piet-coregraphics/Cargo.toml --example=test-picture -- --all --scale=2 --out=coregraphics_samples --compare=./piet/snapshots/coregraphics
if: contains(matrix.os, 'macOS')
- name: upload failures (macOS)
uses: actions/upload-artifact@v2
with:
name: coregraphics-failure
path: coregraphics_samples
if: contains(matrix.os, 'macOS') && failure()
- name: generate and compare (1.00) (d2d)
uses: actions-rs/cargo@v1
with:
command: run
args: --manifest-path=piet-direct2d/Cargo.toml --example=test-picture -- --all --scale=1 --out=d2d_samples --compare=./piet/snapshots/d2d
if: contains(matrix.os, 'windows')
- name: generate and compare (2.00) (d2d)
uses: actions-rs/cargo@v1
with:
command: run
args: --manifest-path=piet-direct2d/Cargo.toml --example=test-picture -- --all --scale=2 --out=d2d_samples --compare=./piet/snapshots/d2d
if: contains(matrix.os, 'windows')
- name: upload failures (d2d)
uses: actions/upload-artifact@v2
with:
name: d2d-failure
path: d2d_samples
if: contains(matrix.os, 'windows') && failure()